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.005592/0.005592, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.346/1.346, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001432/0.001432, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.473/0.473, allocations: 78.54 MB / 418.4 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 79.89 kB / 0.5531 GB, free: 1.52 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3306, allocations: 68.17 MB / 0.6197 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.00427/0.3349, allocations: 4.36 MB / 0.6239 GB, free: 5.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.337, allocations: 1.232 MB / 0.6252 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003219/0.3373, allocations: 11.94 kB / 0.6252 GB, free: 4.574 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.3377, allocations: 138.8 kB / 0.6253 GB, free: 4.438 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004777/0.3382, allocations: 230 kB / 0.6255 GB, free: 4.211 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.3392, allocations: 0.5809 MB / 0.6261 GB, free: 3.633 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/0.3398, allocations: 0.8095 MB / 0.6269 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002485/0.3401, allocations: 205.8 kB / 0.6271 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.3403, allocations: 330.5 kB / 0.6274 GB, free: 2.285 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003557/0.3407, allocations: 418 kB / 0.6278 GB, free: 1.875 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.272e-05/0.3408, allocations: 60 kB / 0.6278 GB, free: 1.816 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.341, allocations: 131.9 kB / 0.628 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.551e-05/0.3411, allocations: 167.3 kB / 0.6281 GB, free: 1.523 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002189/0.3414, allocations: 393.7 kB / 0.6285 GB, free: 1.137 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006282/0.342, allocations: 0.9169 MB / 0.6294 GB, free: 224 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.342, allocations: 0 / 0.6294 GB, free: 224 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.342, allocations: 0 / 0.6294 GB, free: 224 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.342, allocations: 0 / 0.6294 GB, free: 224 kB / 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.004279/0.3463, allocations: 1.565 MB / 0.6309 GB, free: 14.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3464, allocations: 11.97 kB / 0.6309 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001123/0.3465, allocations: 98.7 kB / 0.631 GB, free: 14.49 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002605/0.3491, allocations: 426.9 kB / 0.6314 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/0.3498, allocations: 0.4943 MB / 0.6319 GB, free: 13.53 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.3501, allocations: 193.8 kB / 0.6321 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.863e-05/0.3502, allocations: 55.91 kB / 0.6322 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.3516, allocations: 0.6935 MB / 0.6328 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3516, allocations: 0 / 0.6328 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.896e-05/0.3517, allocations: 23.98 kB / 0.6329 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.3517, allocations: 15.94 kB / 0.6329 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.3532, allocations: 0.6727 MB / 0.6335 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003693/0.3569, allocations: 2.136 MB / 0.6356 GB, free: 9.621 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008138/0.365, allocations: 2.266 MB / 0.6378 GB, free: 7.242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.3663, allocations: 483.1 kB / 0.6383 GB, free: 6.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.333e-05/0.3664, allocations: 8.656 kB / 0.6383 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.3677, allocations: 0.5275 MB / 0.6388 GB, free: 6.219 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 3.857e-06/0.3677, allocations: 0 / 0.6388 GB, free: 6.219 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.007341/0.375, allocations: 2.455 MB / 0.6412 GB, free: 3.695 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.3751, allocations: 60.06 kB / 0.6413 GB, free: 3.621 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005944/0.3757, allocations: 0.5109 MB / 0.6418 GB, free: 3.098 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.889e-05/0.3758, allocations: 37.7 kB / 0.6418 GB, free: 3.055 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.3761, allocations: 336.5 kB / 0.6421 GB, free: 2.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.3763, allocations: 252.3 kB / 0.6424 GB, free: 2.473 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/0.3765, allocations: 122.7 kB / 0.6425 GB, free: 2.348 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3767, allocations: 382.8 kB / 0.6428 GB, free: 1.965 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009021/0.3776, allocations: 401.8 kB / 0.6432 GB, free: 1.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009435/0.3786, allocations: 0.4946 MB / 0.6437 GB, free: 1.051 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009196/0.3878, allocations: 2.518 MB / 0.6462 GB, free: 14.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.3878, allocations: 7.938 kB / 0.6462 GB, free: 14.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007518/0.3953, allocations: 2.208 MB / 0.6483 GB, free: 12.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.3954, allocations: 6.344 kB / 0.6483 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.3954, allocations: 4 kB / 0.6483 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004186/0.3996, allocations: 0.9964 MB / 0.6493 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.4002, allocations: 107.8 kB / 0.6494 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009848/0.4101, allocations: 4.49 MB / 0.6538 GB, free: 6.527 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008535/0.411, allocations: 107.2 kB / 0.6539 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.4111, allocations: 27.98 kB / 0.6539 GB, free: 6.395 MB / 462.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.0004377/0.4116, allocations: 203.9 kB / 0.6541 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.4117, allocations: 75.16 kB / 0.6542 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004847/0.4166, allocations: 1.694 MB / 0.6559 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.4166, allocations: 8 kB / 0.6559 GB, free: 4.395 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.4166, allocations: 7.922 kB / 0.6559 GB, free: 4.387 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.4167, allocations: 0 / 0.6559 GB, free: 4.387 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00477/0.4214, allocations: 2.446 MB / 0.6583 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.4215, allocations: 0 / 0.6583 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/0.4219, allocations: 79.89 kB / 0.6583 GB, free: 1.77 MB / 462.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.004303/0.4262, allocations: 1.057 MB / 0.6594 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.915e-05/0.4263, allocations: 16 kB / 0.6594 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005876/0.4269, allocations: 96.75 kB / 0.6595 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4269, allocations: 0 / 0.6595 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004546/0.4315, allocations: 2.012 MB / 0.6614 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.4317, allocations: 144.1 kB / 0.6616 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.4319, allocations: 27.92 kB / 0.6616 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006638/0.4325, allocations: 55.94 kB / 0.6617 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003025/0.4328, allocations: 120.4 kB / 0.6618 GB, free: 14.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.977e-05/0.4329, allocations: 23.98 kB / 0.6618 GB, free: 14.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003943/0.4333, allocations: 350.8 kB / 0.6621 GB, free: 13.82 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4333, allocations: 0 / 0.6621 GB, free: 13.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007506/0.4341, allocations: 243.7 kB / 0.6624 GB, free: 13.59 MB / 478.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.004882/0.439, allocations: 2.57 MB / 0.6649 GB, free: 10.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004164/0.4432, allocations: 1.579 MB / 0.6664 GB, free: 9.344 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4432, allocations: 0.5 kB / 0.6664 GB, free: 9.344 MB / 478.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:3522:9-3522: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:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]