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.008361/0.008361, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.449/1.449, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001559/0.001559, allocations: 188.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4932/0.4932, allocations: 78.52 MB / 418.4 MB, free: 3.133 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 80.11 kB / 0.5536 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3388, allocations: 68.17 MB / 0.6202 GB, free: 9.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004308/0.3432, allocations: 4.362 MB / 0.6244 GB, free: 5.867 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.3456, allocations: 1.239 MB / 0.6256 GB, free: 4.625 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005736/0.3462, allocations: 7.938 kB / 0.6256 GB, free: 4.617 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005635/0.3467, allocations: 142.8 kB / 0.6258 GB, free: 4.477 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008864/0.3477, allocations: 270 kB / 0.626 GB, free: 4.211 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.349, allocations: 0.5699 MB / 0.6266 GB, free: 3.645 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008732/0.3499, allocations: 0.8017 MB / 0.6274 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003371/0.3503, allocations: 209.7 kB / 0.6276 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.3507, allocations: 334.5 kB / 0.6279 GB, free: 2.297 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004811/0.3512, allocations: 414 kB / 0.6283 GB, free: 1.891 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.624e-05/0.3513, allocations: 64 kB / 0.6283 GB, free: 1.828 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002957/0.3516, allocations: 135.9 kB / 0.6285 GB, free: 1.695 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.656e-05/0.3517, allocations: 163.3 kB / 0.6286 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.3519, allocations: 393.7 kB / 0.629 GB, free: 1.148 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006696/0.3526, allocations: 0.9124 MB / 0.6299 GB, free: 244 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3526, allocations: 4 kB / 0.6299 GB, free: 240 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3526, allocations: 0 / 0.6299 GB, free: 240 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3527, allocations: 0 / 0.6299 GB, free: 240 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.004543/0.3572, allocations: 1.561 MB / 0.6314 GB, free: 14.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3573, allocations: 12.03 kB / 0.6314 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002755/0.36, allocations: 431 kB / 0.6318 GB, free: 14.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007919/0.3608, allocations: 0.4943 MB / 0.6323 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002559/0.3611, allocations: 197.8 kB / 0.6325 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.3613, allocations: 48 kB / 0.6326 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.3629, allocations: 0.6974 MB / 0.6332 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3629, allocations: 3.984 kB / 0.6333 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.031e-05/0.363, allocations: 20 kB / 0.6333 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.363, allocations: 15.94 kB / 0.6333 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.3645, allocations: 0.6727 MB / 0.6339 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003992/0.3685, allocations: 2.132 MB / 0.636 GB, free: 9.746 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008365/0.3769, allocations: 2.263 MB / 0.6382 GB, free: 7.363 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.3781, allocations: 491.1 kB / 0.6387 GB, free: 6.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-05/0.3782, allocations: 8.656 kB / 0.6387 GB, free: 6.875 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001285/0.3795, allocations: 0.5196 MB / 0.6392 GB, free: 6.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=73): time 2.996e-06/0.3795, allocations: 0 / 0.6392 GB, free: 6.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=73): time 0.007586/0.3871, allocations: 2.459 MB / 0.6416 GB, free: 3.812 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.3872, allocations: 60.06 kB / 0.6417 GB, free: 3.738 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007136/0.3879, allocations: 0.507 MB / 0.6422 GB, free: 3.219 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.133e-05/0.388, allocations: 41.7 kB / 0.6422 GB, free: 3.172 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.3882, allocations: 324.6 kB / 0.6425 GB, free: 2.852 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.3885, allocations: 252.3 kB / 0.6428 GB, free: 2.602 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.3888, allocations: 126.6 kB / 0.6429 GB, free: 2.473 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.3889, allocations: 382.8 kB / 0.6432 GB, free: 2.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009381/0.3899, allocations: 409.8 kB / 0.6436 GB, free: 1.688 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009886/0.3909, allocations: 0.4907 MB / 0.6441 GB, free: 1.172 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009517/0.4004, allocations: 2.514 MB / 0.6466 GB, free: 14.63 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.4004, allocations: 0 / 0.6466 GB, free: 14.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007525/0.408, allocations: 2.212 MB / 0.6487 GB, free: 12.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.408, allocations: 14.28 kB / 0.6487 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.408, allocations: 0 / 0.6487 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00415/0.4122, allocations: 0.9975 MB / 0.6497 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.4128, allocations: 107.8 kB / 0.6498 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009884/0.4227, allocations: 4.507 MB / 0.6542 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000907/0.4237, allocations: 107.2 kB / 0.6543 GB, free: 6.531 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.4238, allocations: 24 kB / 0.6544 GB, free: 6.508 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.0004803/0.4243, allocations: 203.7 kB / 0.6545 GB, free: 6.301 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.4245, allocations: 75.16 kB / 0.6546 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005039/0.4296, allocations: 1.698 MB / 0.6563 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.4297, allocations: 8 kB / 0.6563 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.4297, allocations: 0 / 0.6563 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.4297, allocations: 7.922 kB / 0.6563 GB, free: 4.496 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005736/0.4355, allocations: 2.435 MB / 0.6587 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.4355, allocations: 0 / 0.6587 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000419/0.4359, allocations: 75.83 kB / 0.6587 GB, free: 1.895 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.004231/0.4402, allocations: 1.065 MB / 0.6598 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.003e-05/0.4403, allocations: 16.17 kB / 0.6598 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005789/0.4409, allocations: 100.7 kB / 0.6599 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4409, allocations: 3.938 kB / 0.6599 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00463/0.4455, allocations: 2.008 MB / 0.6619 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.4458, allocations: 148.2 kB / 0.662 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.446, allocations: 19.94 kB / 0.662 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006977/0.4467, allocations: 59.94 kB / 0.6621 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003095/0.447, allocations: 116.5 kB / 0.6622 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/0.4471, allocations: 23.98 kB / 0.6622 GB, free: 14.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004349/0.4475, allocations: 350.8 kB / 0.6625 GB, free: 13.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.073e-06/0.4475, allocations: 4 kB / 0.6625 GB, free: 13.94 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007892/0.4483, allocations: 239.6 kB / 0.6628 GB, free: 13.7 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.0002198/0.4485, allocations: 123.2 kB / 0.6629 GB, free: 13.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004116/0.4527, allocations: 1.575 MB / 0.6644 GB, free: 11.94 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.4527, allocations: 0.5 kB / 0.6644 GB, free: 11.94 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: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/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]