Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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/Modelica 3.2.3+maint.om/package.mo", uses=false) 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/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.09633/0.09633, allocations: 12.2 MB / 27.15 MB, free: 1.172 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008711/0.0008711, allocations: 104.1 kB / 30.67 MB, free: 4.859 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.4 MB / 239.5 MB, free: 10.93 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 177.1 kB / 290.6 MB, free: 8.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4007/0.4007, allocations: 78.5 MB / 420.1 MB, free: 6.652 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008911/0.0008914, allocations: 33.53 kB / 0.4895 GB, free: 38.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1183, allocations: 69.24 MB / 0.5571 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004016/0.1224, allocations: 3.845 MB / 0.5609 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002411/0.1249, allocations: 1.198 MB / 0.562 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003014/0.1252, allocations: 4 kB / 0.562 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003324/0.1255, allocations: 111.1 kB / 0.5621 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.1261, allocations: 247.1 kB / 0.5624 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.1272, allocations: 482.2 kB / 0.5628 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007107/0.1279, allocations: 0.5227 MB / 0.5633 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.1282, allocations: 165.2 kB / 0.5635 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.1285, allocations: 286.8 kB / 0.5638 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000442/0.129, allocations: 358.4 kB / 0.5641 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.262e-05/0.1291, allocations: 36 kB / 0.5642 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.1293, allocations: 87.89 kB / 0.5642 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.1295, allocations: 127.5 kB / 0.5644 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.1296, allocations: 153.3 kB / 0.5645 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006118/0.1302, allocations: 0.6392 MB / 0.5651 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1302, allocations: 0 / 0.5651 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1303, allocations: 0 / 0.5651 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.647e-06/0.1303, allocations: 0 / 0.5651 GB, free: 0.6719 MB / 382.1 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.004179/0.1345, allocations: 1.458 MB / 0.5666 GB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.1345, allocations: 15.98 kB / 0.5666 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001456/0.1347, allocations: 98.5 kB / 0.5667 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002635/0.1373, allocations: 426.6 kB / 0.5671 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007553/0.1381, allocations: 494.5 kB / 0.5675 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002527/0.1383, allocations: 205.8 kB / 0.5677 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.1385, allocations: 55.91 kB / 0.5678 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.14, allocations: 0.7209 MB / 0.5685 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.14, allocations: 0 / 0.5685 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.1401, allocations: 23.94 kB / 0.5685 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.1401, allocations: 16 kB / 0.5685 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.1416, allocations: 0.7157 MB / 0.5692 GB, free: 12.33 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.1456, allocations: 2.376 MB / 0.5716 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008503/0.1541, allocations: 2.743 MB / 0.5742 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.1543, allocations: 12.64 kB / 0.5742 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.1556, allocations: 0.5548 MB / 0.5748 GB, free: 6.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.537e-06/0.1556, allocations: 0 / 0.5748 GB, free: 6.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.007674/0.1633, allocations: 2.832 MB / 0.5776 GB, free: 3.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.1634, allocations: 64.06 kB / 0.5776 GB, free: 3.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006205/0.164, allocations: 0.5031 MB / 0.5781 GB, free: 2.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.662e-05/0.1641, allocations: 37.7 kB / 0.5781 GB, free: 2.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.1643, allocations: 324.6 kB / 0.5785 GB, free: 2.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/0.1646, allocations: 260.3 kB / 0.5787 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.1646, allocations: 16 kB / 0.5787 GB, free: 2.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1648, allocations: 386.7 kB / 0.5791 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.1657, allocations: 441.8 kB / 0.5795 GB, free: 1.434 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009585/0.1667, allocations: 0.5259 MB / 0.58 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009712/0.1677, allocations: 472.9 kB / 0.5805 GB, free: 428 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.1677, allocations: 0 / 0.5805 GB, free: 428 kB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007686/0.1754, allocations: 2.63 MB / 0.583 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.11e-05/0.1755, allocations: 4 kB / 0.583 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.1755, allocations: 4 kB / 0.583 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004259/0.1798, allocations: 1.201 MB / 0.5842 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005609/0.1804, allocations: 111.8 kB / 0.5843 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009587/0.19, allocations: 4.659 MB / 0.5889 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008314/0.1908, allocations: 115.4 kB / 0.589 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.1909, allocations: 24 kB / 0.589 GB, free: 7.516 MB / 414.1 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.00036/0.1913, allocations: 205.7 kB / 0.5892 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1914, allocations: 71.16 kB / 0.5893 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005235/0.1966, allocations: 1.959 MB / 0.5912 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.1967, allocations: 8 kB / 0.5912 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.1967, allocations: 4 kB / 0.5912 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.1967, allocations: 7.969 kB / 0.5912 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004719/0.2014, allocations: 2.609 MB / 0.5938 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2015, allocations: 0 / 0.5938 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.2019, allocations: 67.91 kB / 0.5938 GB, free: 2.473 MB / 414.1 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.004377/0.2063, allocations: 1.253 MB / 0.595 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.2064, allocations: 15.98 kB / 0.5951 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000595/0.207, allocations: 124.7 kB / 0.5952 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.207, allocations: 0 / 0.5952 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00473/0.2117, allocations: 2.226 MB / 0.5973 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.212, allocations: 152.2 kB / 0.5975 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.2121, allocations: 12 kB / 0.5975 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000627/0.2128, allocations: 75.94 kB / 0.5976 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002884/0.2131, allocations: 128.4 kB / 0.5977 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.998e-05/0.2131, allocations: 16 kB / 0.5977 GB, free: 14.42 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003695/0.2135, allocations: 354.8 kB / 0.5981 GB, free: 14.08 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2135, allocations: 0 / 0.5981 GB, free: 14.08 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000726/0.2142, allocations: 235.7 kB / 0.5983 GB, free: 13.85 MB / 430.1 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.005093/0.2193, allocations: 2.771 MB / 0.601 GB, free: 11.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004208/0.2236, allocations: 1.751 MB / 0.6027 GB, free: 9.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.2236, allocations: 0 / 0.6027 GB, free: 9.23 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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:3336:9-3336: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: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]