Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_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.005119/0.005119, allocations: 169.5 kB / 15.13 MB, free: 6.023 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.377/1.377, allocations: 223.3 MB / 239.1 MB, free: 15.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 105.1 kB / 290.3 MB, free: 4.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4609/0.4609, allocations: 78.62 MB / 420 MB, free: 36.45 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003435/0.0003434, allocations: 11.98 kB / 500 MB, free: 7.129 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1235, allocations: 69.35 MB / 0.556 GB, free: 1.715 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004073/0.1276, allocations: 3.994 MB / 0.5599 GB, free: 13.69 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.1299, allocations: 1.209 MB / 0.5611 GB, free: 12.48 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004637/0.1304, allocations: 4 kB / 0.5611 GB, free: 12.48 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.1308, allocations: 111.2 kB / 0.5612 GB, free: 12.37 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006602/0.1315, allocations: 210.3 kB / 0.5614 GB, free: 12.16 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1326, allocations: 474.4 kB / 0.5618 GB, free: 11.7 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008431/0.1335, allocations: 0.7276 MB / 0.5626 GB, free: 10.97 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003067/0.1338, allocations: 172.9 kB / 0.5627 GB, free: 10.79 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003187/0.1341, allocations: 278.7 kB / 0.563 GB, free: 10.51 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003866/0.1345, allocations: 366.2 kB / 0.5633 GB, free: 10.15 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.807e-05/0.1346, allocations: 32 kB / 0.5634 GB, free: 10.12 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.1349, allocations: 95.95 kB / 0.5635 GB, free: 10.03 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.893e-05/0.135, allocations: 135.3 kB / 0.5636 GB, free: 9.895 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.1351, allocations: 149.3 kB / 0.5637 GB, free: 9.742 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005772/0.1357, allocations: 0.6664 MB / 0.5644 GB, free: 9.074 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1357, allocations: 0 / 0.5644 GB, free: 9.074 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1357, allocations: 0 / 0.5644 GB, free: 9.074 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1357, allocations: 0 / 0.5644 GB, free: 9.074 MB / 442.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.003994/0.1397, allocations: 1.47 MB / 0.5658 GB, free: 7.555 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1398, allocations: 8.031 kB / 0.5658 GB, free: 7.547 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.1399, allocations: 98.52 kB / 0.5659 GB, free: 7.441 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002462/0.1424, allocations: 426.6 kB / 0.5663 GB, free: 7.023 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006346/0.143, allocations: 486.6 kB / 0.5668 GB, free: 6.508 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.1433, allocations: 205.8 kB / 0.567 GB, free: 6.277 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.343e-05/0.1434, allocations: 56 kB / 0.567 GB, free: 6.223 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.1449, allocations: 0.7287 MB / 0.5677 GB, free: 5.484 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1449, allocations: 0 / 0.5677 GB, free: 5.484 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.637e-05/0.145, allocations: 23.95 kB / 0.5678 GB, free: 5.461 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.145, allocations: 12 kB / 0.5678 GB, free: 5.449 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.1464, allocations: 0.7118 MB / 0.5685 GB, free: 4.738 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.1501, allocations: 2.168 MB / 0.5706 GB, free: 2.488 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2543/0.4044, allocations: 2.749 MB / 0.5733 GB, free: 44.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.4056, allocations: 0.5088 MB / 0.5738 GB, free: 44.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-05/0.4057, allocations: 13.47 kB / 0.5738 GB, free: 44.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.4068, allocations: 0.5582 MB / 0.5743 GB, free: 44.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 3.367e-06/0.4069, allocations: 0.5625 kB / 0.5743 GB, free: 44.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.007663/0.4145, allocations: 2.837 MB / 0.5771 GB, free: 44.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.4146, allocations: 62.84 kB / 0.5772 GB, free: 44.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005775/0.4152, allocations: 0.5057 MB / 0.5777 GB, free: 44.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.638e-05/0.4153, allocations: 43.39 kB / 0.5777 GB, free: 44.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.4155, allocations: 325.5 kB / 0.578 GB, free: 44.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.4157, allocations: 246.1 kB / 0.5782 GB, free: 44.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.4157, allocations: 18.38 kB / 0.5783 GB, free: 44.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4158, allocations: 386.5 kB / 0.5786 GB, free: 43.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009383/0.4168, allocations: 448.2 kB / 0.5791 GB, free: 43.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009146/0.4177, allocations: 0.5297 MB / 0.5796 GB, free: 43.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008994/0.4186, allocations: 469.3 kB / 0.58 GB, free: 43.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4186, allocations: 0 / 0.58 GB, free: 43.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00743/0.4261, allocations: 2.636 MB / 0.5826 GB, free: 43.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.4261, allocations: 5.125 kB / 0.5826 GB, free: 43.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.4261, allocations: 1.75 kB / 0.5826 GB, free: 43.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00429/0.4304, allocations: 1.183 MB / 0.5838 GB, free: 43.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005702/0.431, allocations: 114.2 kB / 0.5839 GB, free: 43.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009099/0.4401, allocations: 4.463 MB / 0.5882 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008837/0.441, allocations: 123.8 kB / 0.5883 GB, free: 41.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/0.4411, allocations: 25.78 kB / 0.5884 GB, free: 41.84 MB / 442.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.0003414/0.4415, allocations: 200.5 kB / 0.5886 GB, free: 41.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.4416, allocations: 75.81 kB / 0.5886 GB, free: 41.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005299/0.4469, allocations: 1.952 MB / 0.5905 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.9e-05/0.4469, allocations: 7.25 kB / 0.5905 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.447, allocations: 2.188 kB / 0.5905 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.447, allocations: 5.953 kB / 0.5906 GB, free: 41.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004713/0.4517, allocations: 2.61 MB / 0.5931 GB, free: 40.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.4517, allocations: 1.25 kB / 0.5931 GB, free: 40.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003904/0.4521, allocations: 72.42 kB / 0.5932 GB, free: 40.54 MB / 442.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.0044/0.4565, allocations: 1.255 MB / 0.5944 GB, free: 40.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.4567, allocations: 12.25 kB / 0.5944 GB, free: 40.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006119/0.4573, allocations: 123.8 kB / 0.5945 GB, free: 40.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.4573, allocations: 7.594 kB / 0.5945 GB, free: 40.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004395/0.4617, allocations: 2.207 MB / 0.5967 GB, free: 39.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.4619, allocations: 162 kB / 0.5968 GB, free: 39.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.784e-05/0.462, allocations: 18.58 kB / 0.5969 GB, free: 39.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000649/0.4627, allocations: 83.7 kB / 0.5969 GB, free: 39.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.463, allocations: 124.3 kB / 0.5971 GB, free: 39.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-05/0.463, allocations: 20.98 kB / 0.5971 GB, free: 39.19 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003458/0.4634, allocations: 345.1 kB / 0.5974 GB, free: 39.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4634, allocations: 0 / 0.5974 GB, free: 39.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007248/0.4641, allocations: 238.4 kB / 0.5976 GB, free: 39 MB / 442.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.004569/0.4687, allocations: 2.77 MB / 0.6003 GB, free: 37.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003919/0.4726, allocations: 1.75 MB / 0.6021 GB, free: 36.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4727, allocations: 0 / 0.6021 GB, free: 36.83 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.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:3387:9-3387: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1487:5-1487:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]