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/ModelicaServices 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/Complex 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000785/0.0007851, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 223.3 MB / 239 MB, free: 5.438 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.001068/0.001068, allocations: 184.5 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4327/0.4327, allocations: 78.55 MB / 419.9 MB, free: 4.305 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.0003469, allocations: 12 kB / 499.8 MB, free: 6.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.129, allocations: 69.36 MB / 0.5558 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2485/0.3776, allocations: 3.996 MB / 0.5597 GB, free: 37.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.3795, allocations: 1.201 MB / 0.5609 GB, free: 37.27 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.3798, allocations: 6.25 kB / 0.5609 GB, free: 37.27 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002894/0.3801, allocations: 102.7 kB / 0.561 GB, free: 37.24 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004297/0.3805, allocations: 210.4 kB / 0.5612 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009551/0.3815, allocations: 471.5 kB / 0.5616 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006181/0.3821, allocations: 0.7335 MB / 0.5624 GB, free: 36.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.3824, allocations: 167.7 kB / 0.5625 GB, free: 36.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/0.3827, allocations: 285.9 kB / 0.5628 GB, free: 36.8 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004317/0.3831, allocations: 364.5 kB / 0.5631 GB, free: 36.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.127e-05/0.3832, allocations: 35.48 kB / 0.5632 GB, free: 36.71 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002593/0.3834, allocations: 92.67 kB / 0.5633 GB, free: 36.7 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.3836, allocations: 132.4 kB / 0.5634 GB, free: 36.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.3837, allocations: 154.5 kB / 0.5635 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005656/0.3843, allocations: 0.666 MB / 0.5642 GB, free: 36.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3843, allocations: 0 / 0.5642 GB, free: 36.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3843, allocations: 1.219 kB / 0.5642 GB, free: 36.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3843, allocations: 0 / 0.5642 GB, free: 36.54 MB / 430.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.003394/0.3877, allocations: 1.455 MB / 0.5656 GB, free: 35.92 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3878, allocations: 11.12 kB / 0.5656 GB, free: 35.92 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002232/0.39, allocations: 428.6 kB / 0.566 GB, free: 35.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/0.3905, allocations: 487.6 kB / 0.5665 GB, free: 35.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.3907, allocations: 206 kB / 0.5667 GB, free: 35.44 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.222e-05/0.3908, allocations: 49.12 kB / 0.5667 GB, free: 35.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.392, allocations: 0.7331 MB / 0.5674 GB, free: 35.39 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3921, allocations: 0.6562 kB / 0.5674 GB, free: 35.39 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-05/0.3921, allocations: 21.72 kB / 0.5675 GB, free: 35.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.3922, allocations: 16.08 kB / 0.5675 GB, free: 35.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.3934, allocations: 0.7151 MB / 0.5682 GB, free: 35.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.3964, allocations: 2.178 MB / 0.5703 GB, free: 34.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006916/0.4034, allocations: 2.75 MB / 0.573 GB, free: 34.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009071/0.4043, allocations: 0.5134 MB / 0.5735 GB, free: 34.19 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.535e-05/0.4044, allocations: 8.719 kB / 0.5735 GB, free: 34.19 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001016/0.4054, allocations: 0.5597 MB / 0.574 GB, free: 34.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.855e-06/0.4054, allocations: 3.938 kB / 0.5741 GB, free: 34.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.0065/0.4119, allocations: 2.835 MB / 0.5768 GB, free: 33.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.412, allocations: 62.44 kB / 0.5769 GB, free: 33.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006772/0.4127, allocations: 0.5036 MB / 0.5774 GB, free: 33.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.4127, allocations: 45.8 kB / 0.5774 GB, free: 33.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.413, allocations: 324.3 kB / 0.5777 GB, free: 33.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.4132, allocations: 245.3 kB / 0.578 GB, free: 32.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.4132, allocations: 18.16 kB / 0.578 GB, free: 32.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.4133, allocations: 380.5 kB / 0.5783 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007708/0.4141, allocations: 445.9 kB / 0.5788 GB, free: 32.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008111/0.4149, allocations: 0.5341 MB / 0.5793 GB, free: 32.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008041/0.4157, allocations: 472 kB / 0.5797 GB, free: 32.02 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4158, allocations: 4 kB / 0.5797 GB, free: 32.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007311/0.4231, allocations: 2.629 MB / 0.5823 GB, free: 31.37 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.936e-05/0.4231, allocations: 6.219 kB / 0.5823 GB, free: 31.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.4232, allocations: 2.5 kB / 0.5823 GB, free: 31.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004298/0.4275, allocations: 1.191 MB / 0.5835 GB, free: 31.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007074/0.4282, allocations: 109.5 kB / 0.5836 GB, free: 31.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009175/0.4374, allocations: 4.465 MB / 0.5879 GB, free: 28.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009067/0.4383, allocations: 118.5 kB / 0.5881 GB, free: 28.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.4385, allocations: 25.73 kB / 0.5881 GB, free: 28.66 MB / 430.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.0004407/0.4389, allocations: 209.1 kB / 0.5883 GB, free: 28.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.4391, allocations: 75.34 kB / 0.5884 GB, free: 28.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004685/0.4438, allocations: 1.96 MB / 0.5903 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.4438, allocations: 7.719 kB / 0.5903 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4438, allocations: 1.5 kB / 0.5903 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4438, allocations: 3.234 kB / 0.5903 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004493/0.4483, allocations: 2.606 MB / 0.5928 GB, free: 26.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.4484, allocations: 0 / 0.5928 GB, free: 26.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.4487, allocations: 69.2 kB / 0.5929 GB, free: 26.63 MB / 430.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.003762/0.4525, allocations: 1.252 MB / 0.5941 GB, free: 26.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.789e-05/0.4526, allocations: 14.45 kB / 0.5941 GB, free: 26.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004963/0.4531, allocations: 128.5 kB / 0.5943 GB, free: 26.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4531, allocations: 5.328 kB / 0.5943 GB, free: 26.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004149/0.4573, allocations: 2.214 MB / 0.5964 GB, free: 25.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.4574, allocations: 159.3 kB / 0.5966 GB, free: 25.33 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.823e-05/0.4575, allocations: 15.78 kB / 0.5966 GB, free: 25.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.4581, allocations: 80.16 kB / 0.5967 GB, free: 25.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/0.4584, allocations: 122.9 kB / 0.5968 GB, free: 25.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.4584, allocations: 14.09 kB / 0.5968 GB, free: 25.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004026/0.4588, allocations: 351.4 kB / 0.5971 GB, free: 25.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4588, allocations: 0 / 0.5971 GB, free: 25.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007669/0.4596, allocations: 236.8 kB / 0.5974 GB, free: 25.09 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.0001766/0.4598, allocations: 118.9 kB / 0.5975 GB, free: 24.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00371/0.4635, allocations: 1.741 MB / 0.5992 GB, free: 24.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4635, allocations: 5.562 kB / 0.5992 GB, free: 24.23 MB / 430.1 MB [/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1487:5-1487:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/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]