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/Complex 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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/Complex 4.0.0+maint.om/package.mo): time 0.00637/0.00637, allocations: 171.7 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.2 MB / 239 MB, free: 1.805 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 103.5 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5334/0.5334, allocations: 78.52 MB / 419.8 MB, free: 43.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003788, allocations: 16 kB / 499.8 MB, free: 2.664 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4201, allocations: 69.34 MB / 0.5558 GB, free: 38.92 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.5474, allocations: 93.35 MB / 0.647 GB, free: 13.04 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.5477, allocations: 81.95 kB / 0.647 GB, free: 12.96 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03511/0.5828, allocations: 14.07 MB / 0.6608 GB, free: 14.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5828, allocations: 4 kB / 0.6608 GB, free: 14.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.598e-05/0.5829, allocations: 13.53 kB / 0.6608 GB, free: 14.79 MB / 474.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.002774/0.5856, allocations: 1.244 MB / 0.662 GB, free: 13.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.5857, allocations: 8.031 kB / 0.662 GB, free: 13.49 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001274/0.5858, allocations: 102.5 kB / 0.6621 GB, free: 13.38 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001547/0.5874, allocations: 306.6 kB / 0.6624 GB, free: 13.08 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.588, allocations: 442.8 kB / 0.6628 GB, free: 12.61 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.5882, allocations: 205.7 kB / 0.663 GB, free: 12.37 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.33e-05/0.5883, allocations: 52.34 kB / 0.6631 GB, free: 12.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.5897, allocations: 0.7248 MB / 0.6638 GB, free: 11.59 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.5897, allocations: 8 kB / 0.6638 GB, free: 11.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.829e-05/0.5898, allocations: 27.98 kB / 0.6638 GB, free: 11.56 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.5898, allocations: 12 kB / 0.6638 GB, free: 11.55 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.5912, allocations: 0.7156 MB / 0.6645 GB, free: 10.83 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.5947, allocations: 2.172 MB / 0.6667 GB, free: 8.578 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008258/0.603, allocations: 2.737 MB / 0.6693 GB, free: 5.727 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.756e-05/0.6031, allocations: 12.64 kB / 0.6693 GB, free: 5.715 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.6043, allocations: 0.5626 MB / 0.6699 GB, free: 5.141 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.816e-06/0.6043, allocations: 3.938 kB / 0.6699 GB, free: 5.137 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.009393/0.6137, allocations: 3.179 MB / 0.673 GB, free: 1.883 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.6138, allocations: 72.05 kB / 0.6731 GB, free: 1.801 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.6143, allocations: 442.4 kB / 0.6735 GB, free: 1.363 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.446e-05/0.6144, allocations: 41.7 kB / 0.6735 GB, free: 1.316 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.6147, allocations: 328.6 kB / 0.6738 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.6149, allocations: 252.3 kB / 0.6741 GB, free: 0.7383 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/0.6149, allocations: 12 kB / 0.6741 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.6151, allocations: 378.8 kB / 0.6745 GB, free: 356 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008956/0.616, allocations: 445.9 kB / 0.6749 GB, free: 15.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009008/0.6169, allocations: 0.5337 MB / 0.6754 GB, free: 15.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008713/0.6178, allocations: 464.9 kB / 0.6758 GB, free: 14.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.6178, allocations: 4 kB / 0.6759 GB, free: 14.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007325/0.6251, allocations: 2.638 MB / 0.6784 GB, free: 12.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.6252, allocations: 8 kB / 0.6784 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.6252, allocations: 0 / 0.6784 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004101/0.6293, allocations: 1.192 MB / 0.6796 GB, free: 11.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005615/0.6299, allocations: 111.8 kB / 0.6797 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00906/0.639, allocations: 4.662 MB / 0.6843 GB, free: 6.137 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009184/0.6399, allocations: 123.3 kB / 0.6844 GB, free: 6.016 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.64, allocations: 24.19 kB / 0.6844 GB, free: 5.992 MB / 490.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 ($whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.disable,$PRE.ultc.zeroCrossing.u_pos,ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,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.0003927/0.6404, allocations: 205.7 kB / 0.6846 GB, free: 5.781 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.6405, allocations: 75.06 kB / 0.6847 GB, free: 5.707 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005615/0.6461, allocations: 2.178 MB / 0.6868 GB, free: 3.508 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.6461, allocations: 11.98 kB / 0.6868 GB, free: 3.496 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.6461, allocations: 0 / 0.6868 GB, free: 3.496 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.6462, allocations: 11.94 kB / 0.6868 GB, free: 3.484 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004512/0.6507, allocations: 2.597 MB / 0.6894 GB, free: 0.793 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.6507, allocations: 0 / 0.6894 GB, free: 0.793 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.6511, allocations: 71.91 kB / 0.6894 GB, free: 0.7227 MB / 490.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.004231/0.6553, allocations: 1.248 MB / 0.6906 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.6554, allocations: 15.98 kB / 0.6907 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005674/0.656, allocations: 132.7 kB / 0.6908 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.656, allocations: 0 / 0.6908 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.6603, allocations: 2.21 MB / 0.6929 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.6605, allocations: 152.1 kB / 0.6931 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.755e-05/0.6606, allocations: 16 kB / 0.6931 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006173/0.6613, allocations: 75.94 kB / 0.6932 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.6615, allocations: 128.4 kB / 0.6933 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.478e-05/0.6616, allocations: 27.95 kB / 0.6933 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003607/0.662, allocations: 346.8 kB / 0.6937 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.232e-06/0.662, allocations: 0 / 0.6937 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0006933/0.6627, allocations: 251.6 kB / 0.6939 GB, free: 12.09 MB / 0.4948 GB 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.004601/0.6673, allocations: 2.786 MB / 0.6966 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003851/0.6712, allocations: 1.744 MB / 0.6983 GB, free: 7.469 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6712, allocations: 0 / 0.6983 GB, free: 7.469 MB / 0.4948 GB [/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:3332:9-3332: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:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]