Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 181.6 kB / 15.45 MB, free: 6.227 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.3 MB / 239.5 MB, free: 1.609 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008273/0.0008274, allocations: 97.62 kB / 290.7 MB, free: 13.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4952/0.4952, allocations: 78.61 MB / 420.4 MB, free: 44.14 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004029/0.0004031, allocations: 12 kB / 0.4889 GB, free: 2.438 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4377/0.4381, allocations: 69.35 MB / 0.5566 GB, free: 39.14 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004122/0.4423, allocations: 4.227 MB / 0.5607 GB, free: 37.7 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002853/0.4452, allocations: 1.256 MB / 0.562 GB, free: 37.16 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005305/0.4457, allocations: 8.094 kB / 0.562 GB, free: 37.16 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004372/0.4462, allocations: 113.7 kB / 0.5621 GB, free: 37.12 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000646/0.4469, allocations: 191.8 kB / 0.5623 GB, free: 37.01 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.4482, allocations: 0.5319 MB / 0.5628 GB, free: 36.84 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009/0.4491, allocations: 0.7656 MB / 0.5635 GB, free: 36.64 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003654/0.4495, allocations: 172.1 kB / 0.5637 GB, free: 36.6 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/0.4499, allocations: 300.4 kB / 0.564 GB, free: 36.5 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000516/0.4504, allocations: 378.7 kB / 0.5643 GB, free: 36.38 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 9.389e-05/0.4505, allocations: 34.38 kB / 0.5644 GB, free: 36.38 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003879/0.4509, allocations: 98.66 kB / 0.5645 GB, free: 36.38 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.4511, allocations: 140.3 kB / 0.5646 GB, free: 36.33 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003919/0.4515, allocations: 385.2 kB / 0.565 GB, free: 36.15 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.4526, allocations: 0.8623 MB / 0.5658 GB, free: 35.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.4526, allocations: 1.125 kB / 0.5658 GB, free: 35.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.566e-06/0.4526, allocations: 0 / 0.5658 GB, free: 35.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.4526, allocations: 0 / 0.5658 GB, free: 35.93 MB / 426.7 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.004373/0.457, allocations: 1.442 MB / 0.5672 GB, free: 35.28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.4571, allocations: 9.125 kB / 0.5672 GB, free: 35.28 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002292/0.4573, allocations: 98.58 kB / 0.5673 GB, free: 35.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002536/0.4598, allocations: 429.5 kB / 0.5677 GB, free: 35.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007172/0.4606, allocations: 0.4931 MB / 0.5682 GB, free: 34.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.4608, allocations: 214 kB / 0.5684 GB, free: 34.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.887e-05/0.4609, allocations: 51.03 kB / 0.5685 GB, free: 34.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.4623, allocations: 0.7369 MB / 0.5692 GB, free: 34.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.4623, allocations: 0 / 0.5692 GB, free: 34.33 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.058e-05/0.4624, allocations: 21.59 kB / 0.5692 GB, free: 34.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.4624, allocations: 17.31 kB / 0.5692 GB, free: 34.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.4637, allocations: 0.7177 MB / 0.5699 GB, free: 34.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.467, allocations: 2.179 MB / 0.572 GB, free: 32.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007141/0.4742, allocations: 2.752 MB / 0.5747 GB, free: 31.87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009764/0.4752, allocations: 0.5141 MB / 0.5752 GB, free: 31.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.341e-05/0.4753, allocations: 20.28 kB / 0.5753 GB, free: 31.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.4764, allocations: 0.567 MB / 0.5758 GB, free: 31.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 2.855e-06/0.4764, allocations: 0 / 0.5758 GB, free: 31.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=73): time 0.006516/0.4829, allocations: 2.845 MB / 0.5786 GB, free: 30.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.4829, allocations: 64.75 kB / 0.5786 GB, free: 30.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005541/0.4835, allocations: 0.5033 MB / 0.5791 GB, free: 30.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.4836, allocations: 43.62 kB / 0.5792 GB, free: 30.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.4838, allocations: 327 kB / 0.5795 GB, free: 29.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.484, allocations: 248.1 kB / 0.5797 GB, free: 29.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.896e-05/0.4841, allocations: 66.17 kB / 0.5798 GB, free: 29.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.342e-05/0.4842, allocations: 379.9 kB / 0.5802 GB, free: 29.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008178/0.485, allocations: 449.6 kB / 0.5806 GB, free: 29.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008322/0.4859, allocations: 0.5355 MB / 0.5811 GB, free: 28.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008035/0.4939, allocations: 2.796 MB / 0.5838 GB, free: 28.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.4939, allocations: 7.875 kB / 0.5838 GB, free: 28.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006769/0.5007, allocations: 2.63 MB / 0.5864 GB, free: 27.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.5008, allocations: 4.344 kB / 0.5864 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.5008, allocations: 3.094 kB / 0.5864 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003664/0.5045, allocations: 1.188 MB / 0.5876 GB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005373/0.505, allocations: 109.9 kB / 0.5877 GB, free: 27.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008549/0.5136, allocations: 4.486 MB / 0.5921 GB, free: 24.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008128/0.5144, allocations: 121.5 kB / 0.5922 GB, free: 24.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/0.5145, allocations: 25.81 kB / 0.5922 GB, free: 24.73 MB / 426.7 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.0003551/0.5148, allocations: 202.8 kB / 0.5924 GB, free: 24.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.515, allocations: 74.81 kB / 0.5925 GB, free: 24.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004761/0.5197, allocations: 1.966 MB / 0.5944 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.5198, allocations: 7.125 kB / 0.5944 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.5198, allocations: 1.188 kB / 0.5944 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.5198, allocations: 3.281 kB / 0.5944 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004434/0.5243, allocations: 2.606 MB / 0.5969 GB, free: 22.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.5243, allocations: 4.969 kB / 0.5969 GB, free: 22.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003647/0.5246, allocations: 73.7 kB / 0.597 GB, free: 22.69 MB / 426.7 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.003997/0.5287, allocations: 1.253 MB / 0.5982 GB, free: 22.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.093e-05/0.5288, allocations: 13.23 kB / 0.5983 GB, free: 22.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005252/0.5293, allocations: 133.8 kB / 0.5984 GB, free: 22.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5293, allocations: 0 / 0.5984 GB, free: 22.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004424/0.5337, allocations: 2.223 MB / 0.6006 GB, free: 21.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.534, allocations: 151.1 kB / 0.6007 GB, free: 21.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.5341, allocations: 19.42 kB / 0.6007 GB, free: 21.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.5347, allocations: 74.11 kB / 0.6008 GB, free: 21.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003028/0.535, allocations: 120.8 kB / 0.6009 GB, free: 21.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.333e-05/0.5351, allocations: 20.38 kB / 0.6009 GB, free: 21.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003886/0.5355, allocations: 359.1 kB / 0.6013 GB, free: 21.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5355, allocations: 0 / 0.6013 GB, free: 21.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007777/0.5363, allocations: 237.3 kB / 0.6015 GB, free: 21.14 MB / 426.7 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.004652/0.5409, allocations: 2.781 MB / 0.6042 GB, free: 19.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004182/0.5451, allocations: 1.746 MB / 0.6059 GB, free: 18.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.5452, allocations: 0 / 0.6059 GB, free: 18.97 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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:3399:9-3399: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:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]