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.009243/0.009244, allocations: 100.9 kB / 15.73 MB, free: 6.047 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.535/1.535, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001529/0.001529, allocations: 180.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5153/0.5153, allocations: 78.54 MB / 418.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002303, allocations: 75.88 kB / 0.5531 GB, free: 1.484 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4239/0.4262, allocations: 68.16 MB / 0.6197 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004834/0.4311, allocations: 4.372 MB / 0.624 GB, free: 5.789 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.4335, allocations: 1.232 MB / 0.6252 GB, free: 4.555 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003098/0.4339, allocations: 8 kB / 0.6252 GB, free: 4.547 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003992/0.4343, allocations: 146.8 kB / 0.6253 GB, free: 4.402 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004809/0.4348, allocations: 226 kB / 0.6255 GB, free: 4.18 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.4359, allocations: 0.5737 MB / 0.6261 GB, free: 3.609 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006267/0.4366, allocations: 0.8095 MB / 0.6269 GB, free: 2.797 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003125/0.4369, allocations: 201.8 kB / 0.6271 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.4371, allocations: 338.5 kB / 0.6274 GB, free: 2.258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003951/0.4375, allocations: 410 kB / 0.6278 GB, free: 1.855 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.588e-05/0.4376, allocations: 60 kB / 0.6278 GB, free: 1.797 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/0.4379, allocations: 139.9 kB / 0.628 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.438, allocations: 167.3 kB / 0.6281 GB, free: 1.496 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.4383, allocations: 393.7 kB / 0.6285 GB, free: 1.109 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007378/0.439, allocations: 0.9188 MB / 0.6294 GB, free: 196 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.439, allocations: 0 / 0.6294 GB, free: 196 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.439, allocations: 0 / 0.6294 GB, free: 196 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.4391, allocations: 0 / 0.6294 GB, free: 196 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.00455/0.4436, allocations: 1.588 MB / 0.631 GB, free: 14.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/0.4437, allocations: 8.031 kB / 0.631 GB, free: 14.54 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001573/0.4439, allocations: 106.6 kB / 0.6311 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002626/0.4465, allocations: 431.3 kB / 0.6315 GB, free: 14.01 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008185/0.4473, allocations: 0.5065 MB / 0.632 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002805/0.4476, allocations: 193.8 kB / 0.6322 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.4477, allocations: 52 kB / 0.6322 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.4493, allocations: 0.6936 MB / 0.6329 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.4493, allocations: 0 / 0.6329 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.079e-05/0.4494, allocations: 24 kB / 0.6329 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.041e-05/0.4494, allocations: 15.94 kB / 0.6329 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.451, allocations: 0.6727 MB / 0.6336 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.4549, allocations: 2.133 MB / 0.6357 GB, free: 9.555 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008294/0.4633, allocations: 2.263 MB / 0.6379 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4645, allocations: 483.1 kB / 0.6383 GB, free: 6.699 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.4646, allocations: 12.66 kB / 0.6383 GB, free: 6.688 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001374/0.466, allocations: 0.5274 MB / 0.6389 GB, free: 6.145 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 2.875e-06/0.466, allocations: 0 / 0.6389 GB, free: 6.145 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.007884/0.4739, allocations: 2.463 MB / 0.6413 GB, free: 3.613 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.474, allocations: 56.06 kB / 0.6413 GB, free: 3.543 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007882/0.4748, allocations: 0.507 MB / 0.6418 GB, free: 3.023 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.563e-05/0.4749, allocations: 45.69 kB / 0.6419 GB, free: 2.973 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.4752, allocations: 333 kB / 0.6422 GB, free: 2.645 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.4755, allocations: 265.7 kB / 0.6424 GB, free: 2.383 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/0.4758, allocations: 122.7 kB / 0.6425 GB, free: 2.258 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.4761, allocations: 382.8 kB / 0.6429 GB, free: 1.875 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009837/0.477, allocations: 405.8 kB / 0.6433 GB, free: 1.477 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.4781, allocations: 498.5 kB / 0.6438 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009639/0.4878, allocations: 2.518 MB / 0.6462 GB, free: 14.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.4878, allocations: 3.938 kB / 0.6462 GB, free: 14.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007746/0.4956, allocations: 2.216 MB / 0.6484 GB, free: 12.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.4956, allocations: 10.28 kB / 0.6484 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4956, allocations: 4 kB / 0.6484 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004332/0.5, allocations: 0.9964 MB / 0.6494 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005733/0.5006, allocations: 103.8 kB / 0.6495 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.5115, allocations: 4.517 MB / 0.6539 GB, free: 6.414 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.5126, allocations: 103.5 kB / 0.654 GB, free: 6.312 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.5128, allocations: 24 kB / 0.654 GB, free: 6.289 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.0005727/0.5134, allocations: 203.9 kB / 0.6542 GB, free: 6.082 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002383/0.5136, allocations: 75.53 kB / 0.6543 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.5189, allocations: 1.698 MB / 0.6559 GB, free: 4.293 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.5189, allocations: 8 kB / 0.6559 GB, free: 4.285 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.5189, allocations: 3.938 kB / 0.656 GB, free: 4.281 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.519, allocations: 3.984 kB / 0.656 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005574/0.5245, allocations: 2.439 MB / 0.6583 GB, free: 1.746 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.5246, allocations: 3.938 kB / 0.6583 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.525, allocations: 71.91 kB / 0.6584 GB, free: 1.672 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.004443/0.5294, allocations: 1.069 MB / 0.6595 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.897e-05/0.5295, allocations: 16.19 kB / 0.6595 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005861/0.5301, allocations: 96.75 kB / 0.6596 GB, free: 492 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5301, allocations: 3.938 kB / 0.6596 GB, free: 488 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005/0.5351, allocations: 2.013 MB / 0.6615 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003212/0.5355, allocations: 156.5 kB / 0.6617 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.5356, allocations: 23.94 kB / 0.6617 GB, free: 14.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007124/0.5364, allocations: 55.94 kB / 0.6618 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.5368, allocations: 120.5 kB / 0.6619 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/0.5368, allocations: 16 kB / 0.6619 GB, free: 14.05 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005641/0.5374, allocations: 358.8 kB / 0.6622 GB, free: 13.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5374, allocations: 0 / 0.6622 GB, free: 13.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009639/0.5384, allocations: 243.8 kB / 0.6625 GB, free: 13.46 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.005456/0.5439, allocations: 2.574 MB / 0.665 GB, free: 10.86 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004575/0.5485, allocations: 1.587 MB / 0.6665 GB, free: 9.211 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.5485, allocations: 0 / 0.6665 GB, free: 9.211 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:3521:9-3521: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:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]