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.00787/0.00787, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.429/1.429, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001549/0.001549, allocations: 184.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4893/0.4893, allocations: 78.53 MB / 418.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 75.88 kB / 0.5531 GB, free: 1.473 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3846, allocations: 68.17 MB / 0.6197 GB, free: 9.539 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005276/0.39, allocations: 4.356 MB / 0.6239 GB, free: 5.926 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.3923, allocations: 1.239 MB / 0.6252 GB, free: 4.684 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002799/0.3926, allocations: 4 kB / 0.6252 GB, free: 4.68 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003804/0.393, allocations: 150.8 kB / 0.6253 GB, free: 4.531 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005419/0.3935, allocations: 258 kB / 0.6256 GB, free: 4.277 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3947, allocations: 0.5856 MB / 0.6261 GB, free: 3.695 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00059/0.3953, allocations: 0.8056 MB / 0.6269 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002792/0.3956, allocations: 197.8 kB / 0.6271 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.3958, allocations: 338.5 kB / 0.6274 GB, free: 2.352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003497/0.3961, allocations: 414 kB / 0.6278 GB, free: 1.945 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.732e-05/0.3962, allocations: 64 kB / 0.6279 GB, free: 1.883 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002391/0.3965, allocations: 128 kB / 0.628 GB, free: 1.758 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.973e-05/0.3966, allocations: 167.2 kB / 0.6282 GB, free: 1.594 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.3968, allocations: 389.7 kB / 0.6285 GB, free: 1.211 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006439/0.3975, allocations: 0.9169 MB / 0.6294 GB, free: 300 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3975, allocations: 0 / 0.6294 GB, free: 300 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3975, allocations: 4 kB / 0.6294 GB, free: 296 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.3975, allocations: 4 kB / 0.6294 GB, free: 292 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.004026/0.4016, allocations: 1.554 MB / 0.631 GB, free: 14.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.4016, allocations: 15.97 kB / 0.631 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.4017, allocations: 94.7 kB / 0.6311 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002431/0.4042, allocations: 430.9 kB / 0.6315 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.4048, allocations: 0.4904 MB / 0.6319 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.405, allocations: 201.8 kB / 0.6321 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.4051, allocations: 52 kB / 0.6322 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.4065, allocations: 0.6935 MB / 0.6329 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.4065, allocations: 4 kB / 0.6329 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.4066, allocations: 24 kB / 0.6329 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.4066, allocations: 19.92 kB / 0.6329 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.408, allocations: 0.6727 MB / 0.6336 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003425/0.4114, allocations: 2.132 MB / 0.6357 GB, free: 9.688 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006991/0.4184, allocations: 2.267 MB / 0.6379 GB, free: 7.305 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008862/0.4193, allocations: 487.1 kB / 0.6383 GB, free: 6.828 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.167e-05/0.4194, allocations: 4.656 kB / 0.6383 GB, free: 6.824 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001082/0.4205, allocations: 0.5274 MB / 0.6388 GB, free: 6.281 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 3.216e-06/0.4205, allocations: 0 / 0.6388 GB, free: 6.281 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.006426/0.427, allocations: 2.455 MB / 0.6412 GB, free: 3.758 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.427, allocations: 64.05 kB / 0.6413 GB, free: 3.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005345/0.4276, allocations: 0.5109 MB / 0.6418 GB, free: 3.156 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.4276, allocations: 41.7 kB / 0.6418 GB, free: 3.109 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.4279, allocations: 324.5 kB / 0.6422 GB, free: 2.789 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.4281, allocations: 256.3 kB / 0.6424 GB, free: 2.535 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.4283, allocations: 114.7 kB / 0.6425 GB, free: 2.418 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4284, allocations: 386.8 kB / 0.6429 GB, free: 2.031 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008104/0.4293, allocations: 405.8 kB / 0.6433 GB, free: 1.633 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008666/0.4301, allocations: 0.4984 MB / 0.6438 GB, free: 1.109 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008347/0.4385, allocations: 2.51 MB / 0.6462 GB, free: 14.57 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.4385, allocations: 3.938 kB / 0.6462 GB, free: 14.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006406/0.4449, allocations: 2.212 MB / 0.6484 GB, free: 12.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.445, allocations: 6.188 kB / 0.6484 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.445, allocations: 4 kB / 0.6484 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003609/0.4486, allocations: 1 MB / 0.6494 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004633/0.4491, allocations: 107.8 kB / 0.6495 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008849/0.4579, allocations: 4.505 MB / 0.6539 GB, free: 6.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006997/0.4586, allocations: 103.2 kB / 0.654 GB, free: 6.477 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.031e-05/0.4587, allocations: 24 kB / 0.654 GB, free: 6.453 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.0003936/0.4591, allocations: 207.8 kB / 0.6542 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.4593, allocations: 71.16 kB / 0.6542 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004385/0.4637, allocations: 1.702 MB / 0.6559 GB, free: 4.453 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.4637, allocations: 8 kB / 0.6559 GB, free: 4.445 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4637, allocations: 3.938 kB / 0.6559 GB, free: 4.441 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.4637, allocations: 3.984 kB / 0.6559 GB, free: 4.438 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004351/0.4681, allocations: 2.435 MB / 0.6583 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4681, allocations: 0 / 0.6583 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003742/0.4685, allocations: 67.91 kB / 0.6584 GB, free: 1.844 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.003801/0.4723, allocations: 1.069 MB / 0.6594 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.347e-05/0.4724, allocations: 11.98 kB / 0.6594 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005026/0.4729, allocations: 104.7 kB / 0.6595 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4729, allocations: 0 / 0.6595 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004189/0.4771, allocations: 2.012 MB / 0.6615 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.4773, allocations: 148.2 kB / 0.6616 GB, free: 14.44 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.4774, allocations: 19.94 kB / 0.6616 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006138/0.4781, allocations: 55.94 kB / 0.6617 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.4784, allocations: 120.6 kB / 0.6618 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/0.4785, allocations: 23.97 kB / 0.6618 GB, free: 14.23 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004247/0.4789, allocations: 354.8 kB / 0.6622 GB, free: 13.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4789, allocations: 3.938 kB / 0.6622 GB, free: 13.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008046/0.4797, allocations: 235.7 kB / 0.6624 GB, free: 13.65 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.004494/0.4842, allocations: 2.578 MB / 0.6649 GB, free: 11.04 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003845/0.4881, allocations: 1.576 MB / 0.6665 GB, free: 9.402 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4881, allocations: 0 / 0.6665 GB, free: 9.402 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]