Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 238.9 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 196.4 kB / 289.1 MB, free: 2.383 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4591/0.4591, allocations: 78.52 MB / 417.8 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 75.88 kB / 496.9 MB, free: 6.656 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1511, allocations: 68.16 MB / 0.5518 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2777/0.4289, allocations: 4.648 MB / 0.5563 GB, free: 37.03 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.4317, allocations: 1.267 MB / 0.5576 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004394/0.4321, allocations: 9.562 kB / 0.5576 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004552/0.4326, allocations: 117.3 kB / 0.5577 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00058/0.4332, allocations: 192 kB / 0.5579 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.4345, allocations: 0.5387 MB / 0.5584 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000775/0.4352, allocations: 0.7599 MB / 0.5591 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.4355, allocations: 173.1 kB / 0.5593 GB, free: 36.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002902/0.4358, allocations: 308.8 kB / 0.5596 GB, free: 36.33 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004028/0.4362, allocations: 407 kB / 0.56 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.118e-05/0.4363, allocations: 41.72 kB / 0.56 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003192/0.4367, allocations: 107.2 kB / 0.5601 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.4368, allocations: 143.5 kB / 0.5603 GB, free: 36.17 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002992/0.4371, allocations: 370.2 kB / 0.5606 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007292/0.4378, allocations: 0.8803 MB / 0.5615 GB, free: 35.83 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4378, allocations: 0.7812 kB / 0.5615 GB, free: 35.83 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.4379, allocations: 2.906 kB / 0.5615 GB, free: 35.83 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.4379, allocations: 2.125 kB / 0.5615 GB, free: 35.83 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.004399/0.4423, allocations: 1.57 MB / 0.563 GB, free: 35.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4423, allocations: 7.344 kB / 0.563 GB, free: 35.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.4425, allocations: 99.55 kB / 0.5631 GB, free: 35.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002599/0.4451, allocations: 426.8 kB / 0.5635 GB, free: 35.07 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007091/0.4458, allocations: 0.4926 MB / 0.564 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002143/0.446, allocations: 200.4 kB / 0.5642 GB, free: 34.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.583e-05/0.4461, allocations: 55.98 kB / 0.5642 GB, free: 34.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.4475, allocations: 0.6907 MB / 0.5649 GB, free: 34.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.4475, allocations: 2.75 kB / 0.5649 GB, free: 34.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-05/0.4476, allocations: 20.16 kB / 0.5649 GB, free: 34.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.4476, allocations: 18.69 kB / 0.565 GB, free: 34.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.4489, allocations: 0.6729 MB / 0.5656 GB, free: 34.56 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.4522, allocations: 2.153 MB / 0.5677 GB, free: 34.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006994/0.4592, allocations: 2.258 MB / 0.5699 GB, free: 33.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.4602, allocations: 492.5 kB / 0.5704 GB, free: 33.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-05/0.4603, allocations: 5.875 kB / 0.5704 GB, free: 33.44 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.4614, allocations: 0.5254 MB / 0.5709 GB, free: 33.38 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 4.238e-06/0.4614, allocations: 3 kB / 0.5709 GB, free: 33.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006483/0.4679, allocations: 2.454 MB / 0.5733 GB, free: 32.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.468, allocations: 61.5 kB / 0.5734 GB, free: 32.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005748/0.4686, allocations: 0.5073 MB / 0.5739 GB, free: 32.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.31e-05/0.4687, allocations: 45.55 kB / 0.5739 GB, free: 32.74 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.4689, allocations: 326.1 kB / 0.5742 GB, free: 32.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.4691, allocations: 253.8 kB / 0.5745 GB, free: 32.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.4693, allocations: 115 kB / 0.5746 GB, free: 32.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4694, allocations: 385.5 kB / 0.5749 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007418/0.4701, allocations: 403.9 kB / 0.5753 GB, free: 32.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007985/0.4709, allocations: 0.4899 MB / 0.5758 GB, free: 32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008146/0.4791, allocations: 2.513 MB / 0.5783 GB, free: 31.31 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.4791, allocations: 10.44 kB / 0.5783 GB, free: 31.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007043/0.4862, allocations: 2.206 MB / 0.5804 GB, free: 30.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.4863, allocations: 7.188 kB / 0.5804 GB, free: 30.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.4863, allocations: 2.594 kB / 0.5804 GB, free: 30.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003883/0.4902, allocations: 0.9994 MB / 0.5814 GB, free: 30.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006083/0.4908, allocations: 107.7 kB / 0.5815 GB, free: 30.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009037/0.4999, allocations: 4.129 MB / 0.5855 GB, free: 28.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009945/0.5009, allocations: 100.2 kB / 0.5856 GB, free: 28.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.5011, allocations: 22.66 kB / 0.5857 GB, free: 28.1 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xp:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.ultc.zeroCrossing.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005871/0.5017, allocations: 211.9 kB / 0.5859 GB, free: 27.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/0.502, allocations: 76.17 kB / 0.5859 GB, free: 27.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004827/0.5068, allocations: 1.692 MB / 0.5876 GB, free: 27.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.5068, allocations: 7.219 kB / 0.5876 GB, free: 27.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.5069, allocations: 1.688 kB / 0.5876 GB, free: 27.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.5069, allocations: 7.422 kB / 0.5876 GB, free: 27.33 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004994/0.5119, allocations: 2.446 MB / 0.59 GB, free: 26.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.5119, allocations: 2.25 kB / 0.59 GB, free: 26.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.5123, allocations: 69.56 kB / 0.5901 GB, free: 26.12 MB / 430.1 MB Warning: The tearing heuristic was not able to avoid discrete iteration variables because otherwise the system could not have been torn. This may lead to problems during simulation. Notification: Performance of postOpt tearingSystem (simulation): time 0.00423/0.5166, allocations: 1.067 MB / 0.5911 GB, free: 25.9 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.5167, allocations: 13.27 kB / 0.5911 GB, free: 25.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005612/0.5173, allocations: 97.55 kB / 0.5912 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5173, allocations: 0 / 0.5912 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004723/0.522, allocations: 2.008 MB / 0.5932 GB, free: 25.03 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.5223, allocations: 150.9 kB / 0.5933 GB, free: 24.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.5225, allocations: 18.41 kB / 0.5933 GB, free: 24.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007564/0.5233, allocations: 57.5 kB / 0.5934 GB, free: 24.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003681/0.5237, allocations: 120.9 kB / 0.5935 GB, free: 24.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.309e-05/0.5238, allocations: 22.44 kB / 0.5935 GB, free: 24.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005988/0.5244, allocations: 356.2 kB / 0.5939 GB, free: 24.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5244, allocations: 0 / 0.5939 GB, free: 24.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001044/0.5254, allocations: 237.2 kB / 0.5941 GB, free: 24.64 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (ultc.x1,load.xp,load.xq) * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,ultc.m,ultc.zeroCrossing.y,ultc.zeroCrossing.disable,ultc.zeroCrossing.u_pos) * Number of discrete states: 3 (ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.m) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005225/0.5307, allocations: 2.577 MB / 0.5966 GB, free: 23.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004367/0.5351, allocations: 1.578 MB / 0.5981 GB, free: 22.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5351, allocations: 0 / 0.5981 GB, free: 22.54 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Branches/Generic/ULTC.mo:57:5-57:24:writable] Error: The language feature non-linear equations within when-equations is not supported. Suggested workaround: Perform non-linear operations outside the when-equation (this is slower, but works) Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3446:9-3446:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {27:8}, {26:7}, {24:3}, {30:5}, {21:66}, {20:33}, {14:29}, {15:67}, {9:20}, {5:21}}, {8, 6, 7, 13, 22, 31, 25, 29, 28, 12, 10, 11, 18, 19, 17, 16:35, 53, 11, 52, 10, 47, 46, 30, 12, 13, 40, 41, 43, 42, 45, 44} Size: 16 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]