Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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_OpenIPSL.Examples.Branches.Generic.ULTC") translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_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.001102/0.001102, allocations: 171.1 kB / 16.11 MB, free: 5.551 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.435/1.435, allocations: 205.4 MB / 222.3 MB, free: 9.012 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.0007853/0.0007853, allocations: 94.34 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo): time 0.2908/0.2908, allocations: 42.28 MB / 361.2 MB, free: 49.36 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004315, allocations: 15.98 kB / 429.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.118, allocations: 57.56 MB / 487 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.449, allocations: 88.26 MB / 0.5618 GB, free: 3.512 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.4494, allocations: 79.95 kB / 0.5618 GB, free: 3.434 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03495/0.4843, allocations: 13.59 MB / 0.5751 GB, free: 5.777 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4844, allocations: 0 / 0.5751 GB, free: 5.777 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.501e-05/0.4844, allocations: 16 kB / 0.5751 GB, free: 5.762 MB / 394.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.003148/0.4876, allocations: 1.216 MB / 0.5763 GB, free: 4.496 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.4876, allocations: 15.97 kB / 0.5763 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.4893, allocations: 307.2 kB / 0.5766 GB, free: 4.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006675/0.49, allocations: 462.7 kB / 0.5771 GB, free: 3.684 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/0.4902, allocations: 209.7 kB / 0.5773 GB, free: 3.449 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.4904, allocations: 56 kB / 0.5773 GB, free: 3.395 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.4918, allocations: 0.7287 MB / 0.578 GB, free: 2.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.4918, allocations: 0 / 0.578 GB, free: 2.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.329e-05/0.4919, allocations: 23.98 kB / 0.5781 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.4919, allocations: 12 kB / 0.5781 GB, free: 2.625 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.4934, allocations: 0.7195 MB / 0.5788 GB, free: 1.902 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004031/0.4975, allocations: 2.176 MB / 0.5809 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008063/0.5055, allocations: 2.745 MB / 0.5836 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.5066, allocations: 0.5069 MB / 0.5841 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.133e-05/0.5067, allocations: 20.58 kB / 0.5841 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.5079, allocations: 0.5587 MB / 0.5846 GB, free: 11.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=73): time 3.166e-06/0.5079, allocations: 0 / 0.5846 GB, free: 11.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=73): time 0.009131/0.517, allocations: 3.2 MB / 0.5878 GB, free: 8.414 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.5171, allocations: 60.06 kB / 0.5878 GB, free: 8.344 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006804/0.5178, allocations: 0.5031 MB / 0.5883 GB, free: 7.828 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.511e-05/0.5179, allocations: 41.7 kB / 0.5884 GB, free: 7.781 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.5182, allocations: 324.5 kB / 0.5887 GB, free: 7.465 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.5184, allocations: 248.4 kB / 0.5889 GB, free: 7.219 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.842e-05/0.5185, allocations: 16 kB / 0.5889 GB, free: 7.203 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5186, allocations: 382.8 kB / 0.5893 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000911/0.5195, allocations: 441.8 kB / 0.5897 GB, free: 6.387 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009776/0.5205, allocations: 0.5259 MB / 0.5902 GB, free: 5.832 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008986/0.5295, allocations: 2.789 MB / 0.5929 GB, free: 3.016 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.371e-06/0.5296, allocations: 3.938 kB / 0.5929 GB, free: 3.012 MB / 410.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007519/0.5371, allocations: 2.645 MB / 0.5955 GB, free: 356 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.5372, allocations: 4 kB / 0.5955 GB, free: 352 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.5372, allocations: 4 kB / 0.5955 GB, free: 348 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003967/0.5412, allocations: 1.191 MB / 0.5967 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005995/0.5418, allocations: 115.8 kB / 0.5968 GB, free: 15.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009487/0.5513, allocations: 4.466 MB / 0.6012 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008891/0.5522, allocations: 115.4 kB / 0.6013 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.5523, allocations: 31.98 kB / 0.6013 GB, free: 10.29 MB / 426.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.0004698/0.5528, allocations: 194.8 kB / 0.6015 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.5529, allocations: 79 kB / 0.6016 GB, free: 10.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005909/0.5588, allocations: 2.182 MB / 0.6037 GB, free: 7.812 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.5589, allocations: 11.98 kB / 0.6037 GB, free: 7.801 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.5589, allocations: 3.938 kB / 0.6037 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.5589, allocations: 3.984 kB / 0.6037 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00512/0.564, allocations: 2.609 MB / 0.6063 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.5641, allocations: 0 / 0.6063 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/0.5645, allocations: 67.91 kB / 0.6063 GB, free: 5.023 MB / 426.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.004155/0.5686, allocations: 1.25 MB / 0.6076 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.341e-05/0.5688, allocations: 12 kB / 0.6076 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006062/0.5694, allocations: 132.7 kB / 0.6077 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5694, allocations: 0 / 0.6077 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004724/0.5741, allocations: 2.206 MB / 0.6098 GB, free: 1.391 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.5745, allocations: 156.1 kB / 0.61 GB, free: 1.219 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.5746, allocations: 19.98 kB / 0.61 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006358/0.5752, allocations: 75.94 kB / 0.6101 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/0.5755, allocations: 120.4 kB / 0.6102 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.5756, allocations: 20 kB / 0.6102 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005285/0.5761, allocations: 358.7 kB / 0.6106 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.5762, allocations: 0 / 0.6106 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009369/0.5771, allocations: 247.7 kB / 0.6108 GB, free: 408 kB / 426.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.0002714/0.5774, allocations: 135.1 kB / 0.6109 GB, free: 264 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004143/0.5816, allocations: 1.742 MB / 0.6126 GB, free: 14.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.5816, allocations: 0 / 0.6126 GB, free: 14.46 MB / 442.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]