Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001/0.001, allocations: 105.5 kB / 18.95 MB, free: 1.184 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.114/1.114, allocations: 207.7 MB / 229.7 MB, free: 4.793 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 220.3 kB / 282.1 MB, free: 1.734 MB / 218.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.1/package.mo): time 0.3592/0.3592, allocations: 43.01 MB / 377.4 MB, free: 49.64 MB / 298.7 MB " [Timeout remaining time 180] Using package OpenIPSL with version 2.0.0-beta.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+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 ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(OpenIPSL.Examples.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Branches_Generic_ULTC",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Branches_Generic_ULTC",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 104.4 kB / 0.5012 GB, free: 43.39 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1185, allocations: 59.63 MB / 0.5595 GB, free: 11.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.003568/0.122, allocations: 3.96 MB / 0.5633 GB, free: 7.867 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.1238, allocations: 1.147 MB / 0.5644 GB, free: 6.715 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002879/0.1241, allocations: 8 kB / 0.5645 GB, free: 6.707 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002779/0.1244, allocations: 150.8 kB / 0.5646 GB, free: 6.559 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003724/0.1248, allocations: 262 kB / 0.5648 GB, free: 6.301 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006929/0.1255, allocations: 0.5167 MB / 0.5654 GB, free: 5.789 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004468/0.1259, allocations: 0.8055 MB / 0.5661 GB, free: 4.98 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.1262, allocations: 142.5 kB / 0.5663 GB, free: 4.824 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.1264, allocations: 334.6 kB / 0.5666 GB, free: 4.496 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.1268, allocations: 374 kB / 0.567 GB, free: 4.129 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.057e-05/0.1268, allocations: 67.98 kB / 0.567 GB, free: 4.062 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.1271, allocations: 131.9 kB / 0.5671 GB, free: 3.934 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.591e-05/0.1272, allocations: 163.3 kB / 0.5673 GB, free: 3.773 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.1274, allocations: 318.2 kB / 0.5676 GB, free: 3.461 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007043/0.1281, allocations: 0.9219 MB / 0.5685 GB, free: 2.535 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1281, allocations: 7.984 kB / 0.5685 GB, free: 2.527 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1281, allocations: 0 / 0.5685 GB, free: 2.527 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.1281, allocations: 0 / 0.5685 GB, free: 2.527 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.00251/0.1306, allocations: 1.61 MB / 0.5701 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1307, allocations: 11.98 kB / 0.5701 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.549e-05/0.1307, allocations: 102.7 kB / 0.5702 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.1321, allocations: 435.3 kB / 0.5706 GB, free: 340 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004797/0.1326, allocations: 447.4 kB / 0.571 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.1328, allocations: 274.9 kB / 0.5713 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.711e-05/0.1329, allocations: 56 kB / 0.5713 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008853/0.1337, allocations: 0.6858 MB / 0.572 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1338, allocations: 0 / 0.572 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.41e-05/0.1338, allocations: 20 kB / 0.572 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.1338, allocations: 23.92 kB / 0.5721 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1349, allocations: 0.6649 MB / 0.5727 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.1377, allocations: 1.783 MB / 0.5745 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003734/0.1414, allocations: 1.744 MB / 0.5762 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/0.142, allocations: 431.1 kB / 0.5766 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.1421, allocations: 12.66 kB / 0.5766 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007085/0.1428, allocations: 0.5235 MB / 0.5771 GB, free: 9.547 MB / 394.7 MB Notification: Performance of pre-optimization done (n=73): time 2.515e-06/0.1428, allocations: 4 kB / 0.5771 GB, free: 9.543 MB / 394.7 MB Notification: Performance of matching and sorting (n=73): time 0.004271/0.1471, allocations: 2.21 MB / 0.5793 GB, free: 7.316 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.1471, allocations: 67.94 kB / 0.5793 GB, free: 7.238 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005075/0.1476, allocations: 0.507 MB / 0.5798 GB, free: 6.719 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.1477, allocations: 49.69 kB / 0.5799 GB, free: 6.664 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.1479, allocations: 329.1 kB / 0.5802 GB, free: 6.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.1481, allocations: 265.7 kB / 0.5804 GB, free: 6.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.1482, allocations: 122.6 kB / 0.5805 GB, free: 5.953 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1483, allocations: 382.8 kB / 0.5809 GB, free: 5.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005245/0.1489, allocations: 397.8 kB / 0.5813 GB, free: 5.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005676/0.1494, allocations: 0.4946 MB / 0.5818 GB, free: 4.656 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004647/0.1541, allocations: 2.51 MB / 0.5842 GB, free: 2.117 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.1541, allocations: 3.938 kB / 0.5842 GB, free: 2.113 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003932/0.158, allocations: 2.201 MB / 0.5864 GB, free: 15.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.158, allocations: 4 kB / 0.5864 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.1581, allocations: 8 kB / 0.5864 GB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002022/0.1601, allocations: 0.9937 MB / 0.5874 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.1604, allocations: 103.8 kB / 0.5875 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005698/0.1661, allocations: 4.307 MB / 0.5917 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/0.1666, allocations: 99.52 kB / 0.5918 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.1666, allocations: 31.98 kB / 0.5918 GB, free: 10.23 MB / 410.7 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.0003695/0.167, allocations: 209.9 kB / 0.592 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1671, allocations: 79.47 kB / 0.5921 GB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/0.1698, allocations: 1.678 MB / 0.5937 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1698, allocations: 7.984 kB / 0.5937 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1698, allocations: 7.938 kB / 0.5937 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1698, allocations: 0 / 0.5937 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/0.1725, allocations: 2.115 MB / 0.5958 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1725, allocations: 0 / 0.5958 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.1727, allocations: 75.84 kB / 0.5959 GB, free: 5.977 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.00206/0.1748, allocations: 1.061 MB / 0.5969 GB, free: 4.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/0.1748, allocations: 16 kB / 0.5969 GB, free: 4.891 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002484/0.1751, allocations: 100.7 kB / 0.597 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1751, allocations: 3.984 kB / 0.597 GB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/0.1777, allocations: 1.985 MB / 0.5989 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.1778, allocations: 87.39 kB / 0.599 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.518e-05/0.1779, allocations: 19.94 kB / 0.599 GB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000277/0.1782, allocations: 59.92 kB / 0.5991 GB, free: 2.609 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.1784, allocations: 120.4 kB / 0.5992 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.1784, allocations: 19.98 kB / 0.5992 GB, free: 2.473 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003712/0.1788, allocations: 354.8 kB / 0.5996 GB, free: 2.129 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1788, allocations: 3.938 kB / 0.5996 GB, free: 2.125 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00061/0.1794, allocations: 239.8 kB / 0.5998 GB, free: 1.891 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 (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.00298/0.1824, allocations: 2.552 MB / 0.6023 GB, free: 15.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002364/0.1848, allocations: 1.386 MB / 0.6037 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1848, allocations: 0 / 0.6037 GB, free: 13.9 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0-beta.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:3566:9-3566: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:1569:5-1569:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.764542614109814]