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: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005877/0.005877, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.531 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.001278/0.001278, allocations: 184.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.434/0.434, allocations: 78.52 MB / 418.4 MB, free: 3.125 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 79.88 kB / 0.5536 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2976, allocations: 68.17 MB / 0.6202 GB, free: 9.723 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003788/0.3014, allocations: 4.36 MB / 0.6244 GB, free: 5.848 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.3033, allocations: 1.243 MB / 0.6256 GB, free: 4.602 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.3035, allocations: 8 kB / 0.6256 GB, free: 4.594 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.3038, allocations: 142.8 kB / 0.6258 GB, free: 4.453 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003861/0.3042, allocations: 230 kB / 0.626 GB, free: 4.227 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009676/0.3052, allocations: 0.5777 MB / 0.6266 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004741/0.3057, allocations: 0.8056 MB / 0.6273 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.3059, allocations: 201.8 kB / 0.6275 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.3061, allocations: 338.5 kB / 0.6279 GB, free: 2.305 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.3065, allocations: 414 kB / 0.6283 GB, free: 1.898 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.407e-05/0.3066, allocations: 60 kB / 0.6283 GB, free: 1.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002408/0.3069, allocations: 135.9 kB / 0.6284 GB, free: 1.707 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.467e-05/0.307, allocations: 163.3 kB / 0.6286 GB, free: 1.547 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002432/0.3072, allocations: 389.7 kB / 0.629 GB, free: 1.164 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000601/0.3078, allocations: 0.9203 MB / 0.6299 GB, free: 252 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3078, allocations: 0 / 0.6299 GB, free: 252 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3078, allocations: 0 / 0.6299 GB, free: 252 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.3079, allocations: 0 / 0.6299 GB, free: 252 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.003996/0.3119, allocations: 1.557 MB / 0.6314 GB, free: 14.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3119, allocations: 15.97 kB / 0.6314 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002474/0.3144, allocations: 423.1 kB / 0.6318 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006366/0.315, allocations: 0.4982 MB / 0.6323 GB, free: 13.67 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.3153, allocations: 201.7 kB / 0.6325 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.563e-05/0.3154, allocations: 52 kB / 0.6325 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3167, allocations: 0.6897 MB / 0.6332 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3167, allocations: 0 / 0.6332 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.3168, allocations: 23.98 kB / 0.6332 GB, free: 12.67 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/0.3168, allocations: 15.94 kB / 0.6332 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.3182, allocations: 0.6727 MB / 0.6339 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003584/0.3217, allocations: 2.136 MB / 0.636 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007377/0.3291, allocations: 2.255 MB / 0.6382 GB, free: 7.383 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009813/0.3302, allocations: 495.1 kB / 0.6387 GB, free: 6.898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.502e-05/0.3303, allocations: 12.64 kB / 0.6387 GB, free: 6.887 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00108/0.3313, allocations: 0.5196 MB / 0.6392 GB, free: 6.352 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 2.675e-06/0.3314, allocations: 0 / 0.6392 GB, free: 6.352 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.006908/0.3383, allocations: 2.459 MB / 0.6416 GB, free: 3.824 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.3383, allocations: 60.06 kB / 0.6416 GB, free: 3.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006065/0.3389, allocations: 0.507 MB / 0.6421 GB, free: 3.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.407e-05/0.339, allocations: 41.7 kB / 0.6422 GB, free: 3.184 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.3393, allocations: 324.6 kB / 0.6425 GB, free: 2.863 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.3395, allocations: 256.3 kB / 0.6427 GB, free: 2.609 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.3397, allocations: 122.7 kB / 0.6429 GB, free: 2.484 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3399, allocations: 382.8 kB / 0.6432 GB, free: 2.102 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008196/0.3407, allocations: 401.8 kB / 0.6436 GB, free: 1.707 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009206/0.3417, allocations: 0.5023 MB / 0.6441 GB, free: 1.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008647/0.3503, allocations: 2.514 MB / 0.6465 GB, free: 14.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3503, allocations: 0 / 0.6465 GB, free: 14.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006837/0.3572, allocations: 2.216 MB / 0.6487 GB, free: 12.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.3572, allocations: 10.34 kB / 0.6487 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.3573, allocations: 0 / 0.6487 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/0.361, allocations: 0.9937 MB / 0.6497 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.3615, allocations: 111.8 kB / 0.6498 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008968/0.3705, allocations: 4.501 MB / 0.6542 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006948/0.3712, allocations: 107.2 kB / 0.6543 GB, free: 6.547 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.211e-05/0.3713, allocations: 23.98 kB / 0.6543 GB, free: 6.523 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.0003352/0.3716, allocations: 207.8 kB / 0.6545 GB, free: 6.312 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.3717, allocations: 75.16 kB / 0.6546 GB, free: 6.238 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004714/0.3765, allocations: 1.69 MB / 0.6562 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.3765, allocations: 11.98 kB / 0.6562 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3765, allocations: 4 kB / 0.6563 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3765, allocations: 7.922 kB / 0.6563 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00429/0.3808, allocations: 2.427 MB / 0.6586 GB, free: 1.988 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3808, allocations: 3.938 kB / 0.6586 GB, free: 1.984 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003851/0.3812, allocations: 79.83 kB / 0.6587 GB, free: 1.906 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.00385/0.3851, allocations: 1.069 MB / 0.6598 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.3852, allocations: 12 kB / 0.6598 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005031/0.3857, allocations: 100.7 kB / 0.6599 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3857, allocations: 0 / 0.6599 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00418/0.3899, allocations: 2.016 MB / 0.6618 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.3901, allocations: 144.2 kB / 0.662 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.294e-05/0.3902, allocations: 27.92 kB / 0.662 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000571/0.3907, allocations: 55.94 kB / 0.662 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/0.391, allocations: 116.5 kB / 0.6622 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.918e-05/0.3911, allocations: 23.98 kB / 0.6622 GB, free: 14.29 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003725/0.3915, allocations: 354.8 kB / 0.6625 GB, free: 13.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3915, allocations: 0 / 0.6625 GB, free: 13.94 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000643/0.3922, allocations: 235.7 kB / 0.6627 GB, free: 13.71 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.000194/0.3924, allocations: 125.6 kB / 0.6629 GB, free: 13.58 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003813/0.3962, allocations: 1.572 MB / 0.6644 GB, free: 11.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3962, allocations: 0.5 kB / 0.6644 GB, free: 11.95 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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/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]