Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo", uses=false) Using package OpenIPSL with version 2.0.0-beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.Branches.Generic.ULTC") translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 170.2 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.4 MB / 222.3 MB, free: 13.6 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008573/0.0008575, allocations: 86.3 kB / 270.6 MB, free: 13.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo): time 0.1671/0.1671, allocations: 42.31 MB / 361.2 MB, free: 12.41 MB / 266.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003664, allocations: 12 kB / 429.4 MB, free: 21.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09537/0.09575, allocations: 57.55 MB / 487 MB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3142/0.41, allocations: 88.26 MB / 0.5618 GB, free: 15.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.4103, allocations: 79.77 kB / 0.5618 GB, free: 15.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03629/0.4466, allocations: 13.6 MB / 0.5751 GB, free: 4.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.262e-06/0.4467, allocations: 0 / 0.5751 GB, free: 4.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.933e-05/0.4467, allocations: 27.88 kB / 0.5751 GB, free: 4.215 MB / 378.7 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.003042/0.4498, allocations: 1.207 MB / 0.5763 GB, free: 3.031 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.4498, allocations: 8.031 kB / 0.5763 GB, free: 3.023 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.4515, allocations: 314.8 kB / 0.5766 GB, free: 2.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.4522, allocations: 461 kB / 0.5771 GB, free: 2.312 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.4524, allocations: 207.4 kB / 0.5773 GB, free: 2.102 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.4525, allocations: 57.73 kB / 0.5773 GB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.454, allocations: 0.7272 MB / 0.578 GB, free: 1.543 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.4541, allocations: 4 kB / 0.578 GB, free: 1.539 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-05/0.4541, allocations: 18.75 kB / 0.5781 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.4542, allocations: 12 kB / 0.5781 GB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.4556, allocations: 0.7191 MB / 0.5788 GB, free: 1.012 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003879/0.4595, allocations: 2.182 MB / 0.5809 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007872/0.4674, allocations: 2.756 MB / 0.5836 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009743/0.4684, allocations: 0.5158 MB / 0.5841 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-05/0.4685, allocations: 8.656 kB / 0.5841 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.4697, allocations: 0.5578 MB / 0.5846 GB, free: 12.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=73): time 3.596e-06/0.4697, allocations: 0 / 0.5846 GB, free: 12.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=73): time 0.008918/0.4786, allocations: 3.194 MB / 0.5878 GB, free: 9.312 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.4787, allocations: 64.06 kB / 0.5878 GB, free: 9.238 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007573/0.4795, allocations: 0.512 MB / 0.5883 GB, free: 8.824 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.83e-05/0.4796, allocations: 39.64 kB / 0.5884 GB, free: 8.789 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.4798, allocations: 324.3 kB / 0.5887 GB, free: 8.578 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.4801, allocations: 247.1 kB / 0.5889 GB, free: 8.367 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.876e-05/0.4801, allocations: 14.94 kB / 0.5889 GB, free: 8.363 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.4803, allocations: 387 kB / 0.5893 GB, free: 8.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009131/0.4812, allocations: 442.1 kB / 0.5897 GB, free: 7.707 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009272/0.4822, allocations: 0.5342 MB / 0.5902 GB, free: 7.293 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008852/0.491, allocations: 2.785 MB / 0.593 GB, free: 5.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.4911, allocations: 0 / 0.593 GB, free: 5.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007729/0.4988, allocations: 2.638 MB / 0.5955 GB, free: 2.832 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.4989, allocations: 8 kB / 0.5955 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.4989, allocations: 7.984 kB / 0.5955 GB, free: 2.816 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003913/0.5028, allocations: 1.189 MB / 0.5967 GB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005772/0.5035, allocations: 111.7 kB / 0.5968 GB, free: 1.648 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008869/0.5123, allocations: 4.469 MB / 0.6012 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009888/0.5134, allocations: 116.9 kB / 0.6013 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.5135, allocations: 23.12 kB / 0.6013 GB, free: 13.93 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp: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.disable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,$whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,ultc.zeroCrossing.disable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.enable) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005216/0.5141, allocations: 209.5 kB / 0.6015 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.5142, allocations: 82.98 kB / 0.6016 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005665/0.5199, allocations: 2.178 MB / 0.6037 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.52, allocations: 8 kB / 0.6037 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.52, allocations: 0 / 0.6037 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.52, allocations: 3.984 kB / 0.6037 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004614/0.5246, allocations: 2.598 MB / 0.6063 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.5246, allocations: 0 / 0.6063 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004745/0.5251, allocations: 71.16 kB / 0.6063 GB, free: 9.82 MB / 410.7 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.004138/0.5293, allocations: 1.253 MB / 0.6076 GB, free: 8.703 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-05/0.5294, allocations: 13.25 kB / 0.6076 GB, free: 8.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005746/0.5299, allocations: 130.1 kB / 0.6077 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.53, allocations: 4 kB / 0.6077 GB, free: 8.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004422/0.5344, allocations: 2.214 MB / 0.6099 GB, free: 6.949 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.5346, allocations: 148.8 kB / 0.61 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.5348, allocations: 13.94 kB / 0.61 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006349/0.5354, allocations: 82.73 kB / 0.6101 GB, free: 6.715 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.5357, allocations: 122.9 kB / 0.6102 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.5358, allocations: 19.94 kB / 0.6102 GB, free: 6.598 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004125/0.5362, allocations: 352.5 kB / 0.6106 GB, free: 6.328 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5362, allocations: 0 / 0.6106 GB, free: 6.328 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008175/0.537, allocations: 248.1 kB / 0.6108 GB, free: 6.109 MB / 410.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002578/0.5373, allocations: 134.9 kB / 0.6109 GB, free: 5.984 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004057/0.5414, allocations: 1.735 MB / 0.6126 GB, free: 4.488 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5414, allocations: 0 / 0.6126 GB, free: 4.488 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/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:3397:9-3397:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {28:8}, {22:7}, {26:5}, {24:3}, {31:66}, {30:33}, {15:29}, {16:67}, {7:20}, {9:21}}, {10, 14, 5, 12, 6, 8, 19, 18, 11, 13, 25, 27, 29, 21, 20, 17:35, 11, 53, 10, 52, 46, 47, 30, 40, 41, 43, 42, 45, 13, 12, 44} Size: 16 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1495:5-1495:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]