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.007162/0.007162, allocations: 98.36 kB / 15.73 MB, free: 5.602 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.328/1.328, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001462/0.001462, 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.4577/0.4577, allocations: 78.54 MB / 418.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001756, allocations: 83.86 kB / 0.5531 GB, free: 1.438 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3404, allocations: 68.16 MB / 0.6197 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.00414/0.3446, allocations: 4.368 MB / 0.624 GB, free: 5.754 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3464, allocations: 1.239 MB / 0.6252 GB, free: 4.512 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002179/0.3466, allocations: 4 kB / 0.6252 GB, free: 4.508 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.3469, allocations: 150.8 kB / 0.6253 GB, free: 4.359 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000417/0.3474, allocations: 258 kB / 0.6256 GB, free: 4.105 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009528/0.3483, allocations: 0.5855 MB / 0.6261 GB, free: 3.523 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004993/0.3488, allocations: 0.8017 MB / 0.6269 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002385/0.3491, allocations: 201.8 kB / 0.6271 GB, free: 2.512 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.3493, allocations: 334.5 kB / 0.6274 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.3496, allocations: 410 kB / 0.6278 GB, free: 1.781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.85e-05/0.3497, allocations: 64 kB / 0.6279 GB, free: 1.719 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.3499, allocations: 139.9 kB / 0.628 GB, free: 1.582 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.024e-05/0.35, allocations: 163.3 kB / 0.6282 GB, free: 1.422 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.3503, allocations: 389.7 kB / 0.6285 GB, free: 1.039 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006329/0.3509, allocations: 0.9227 MB / 0.6294 GB, free: 120 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3509, allocations: 0 / 0.6294 GB, free: 120 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3509, allocations: 0 / 0.6294 GB, free: 120 kB / 430.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.3509, allocations: 0 / 0.6294 GB, free: 120 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.004203/0.3551, allocations: 1.59 MB / 0.631 GB, free: 14.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3552, allocations: 12.03 kB / 0.631 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.3553, allocations: 94.7 kB / 0.6311 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002551/0.3579, allocations: 439.3 kB / 0.6315 GB, free: 13.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.3585, allocations: 0.4948 MB / 0.632 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.3587, allocations: 197.8 kB / 0.6322 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.975e-05/0.3588, allocations: 52 kB / 0.6322 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3602, allocations: 0.6896 MB / 0.6329 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3602, allocations: 0 / 0.6329 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.986e-05/0.3603, allocations: 24 kB / 0.6329 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.3603, allocations: 19.94 kB / 0.6329 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.3616, allocations: 0.6766 MB / 0.6336 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003384/0.365, allocations: 2.141 MB / 0.6357 GB, free: 9.477 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007744/0.3728, allocations: 2.255 MB / 0.6379 GB, free: 7.102 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009686/0.3738, allocations: 483.1 kB / 0.6384 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-05/0.3739, allocations: 16.62 kB / 0.6384 GB, free: 6.613 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.375, allocations: 0.5196 MB / 0.6389 GB, free: 6.078 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 2.925e-06/0.375, allocations: 4 kB / 0.6389 GB, free: 6.074 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.007114/0.3822, allocations: 2.459 MB / 0.6413 GB, free: 3.547 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.3822, allocations: 60.06 kB / 0.6413 GB, free: 3.473 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005507/0.3828, allocations: 0.5147 MB / 0.6419 GB, free: 2.945 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.511e-05/0.3829, allocations: 45.7 kB / 0.6419 GB, free: 2.895 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.3831, allocations: 329 kB / 0.6422 GB, free: 2.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.3833, allocations: 265.7 kB / 0.6425 GB, free: 2.309 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.3835, allocations: 118.7 kB / 0.6426 GB, free: 2.188 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3837, allocations: 382.8 kB / 0.6429 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008552/0.3846, allocations: 405.8 kB / 0.6433 GB, free: 1.406 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009116/0.3855, allocations: 0.4906 MB / 0.6438 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008853/0.3943, allocations: 2.514 MB / 0.6463 GB, free: 14.34 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.3944, allocations: 7.938 kB / 0.6463 GB, free: 14.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007027/0.4014, allocations: 2.212 MB / 0.6484 GB, free: 12.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4015, allocations: 8 kB / 0.6484 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.4015, allocations: 0 / 0.6484 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00392/0.4054, allocations: 0.9976 MB / 0.6494 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005166/0.406, allocations: 111.8 kB / 0.6495 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009128/0.4151, allocations: 4.504 MB / 0.6539 GB, free: 6.352 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007936/0.4159, allocations: 107.5 kB / 0.654 GB, free: 6.246 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.354e-05/0.416, allocations: 28 kB / 0.654 GB, free: 6.219 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.0003383/0.4163, allocations: 211.9 kB / 0.6542 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.4165, allocations: 75.53 kB / 0.6543 GB, free: 5.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.4211, allocations: 1.694 MB / 0.656 GB, free: 4.219 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4211, allocations: 8 kB / 0.656 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4211, allocations: 3.938 kB / 0.656 GB, free: 4.207 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4211, allocations: 3.984 kB / 0.656 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004343/0.4255, allocations: 2.439 MB / 0.6584 GB, free: 1.672 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4255, allocations: 0 / 0.6584 GB, free: 1.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/0.4259, allocations: 75.89 kB / 0.6584 GB, free: 1.598 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.004121/0.43, allocations: 1.057 MB / 0.6595 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.4301, allocations: 16 kB / 0.6595 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005631/0.4307, allocations: 104.7 kB / 0.6596 GB, free: 420 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.4307, allocations: 3.938 kB / 0.6596 GB, free: 416 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00432/0.435, allocations: 2.013 MB / 0.6616 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.4352, allocations: 152.5 kB / 0.6617 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.4353, allocations: 27.92 kB / 0.6617 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006083/0.436, allocations: 51.94 kB / 0.6618 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002549/0.4362, allocations: 124.4 kB / 0.6619 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.713e-05/0.4363, allocations: 16 kB / 0.6619 GB, free: 13.98 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003547/0.4366, allocations: 358.8 kB / 0.6623 GB, free: 13.63 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4366, allocations: 0 / 0.6623 GB, free: 13.63 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007018/0.4373, allocations: 239.8 kB / 0.6625 GB, free: 13.4 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.004584/0.4419, allocations: 2.576 MB / 0.665 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.4459, allocations: 1.583 MB / 0.6665 GB, free: 9.145 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4459, allocations: 0.5 kB / 0.6665 GB, free: 9.145 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]