Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.Branches.Generic.ULTC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo", uses=false) Using package OpenIPSL with version 2.0.0-beta.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Branches.Generic.ULTC") translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Branches.Generic.ULTC") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 181.2 kB / 15.43 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.7 MB / 241.9 MB, free: 14.46 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007479/0.0007478, allocations: 101.7 kB / 293 MB, free: 4.809 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenIPSL 2.0.0-master/package.mo): time 0.1682/0.1682, allocations: 43.18 MB / 387.4 MB, free: 1.57 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003441, allocations: 11.98 kB / 458.6 MB, free: 73.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1235, allocations: 60.5 MB / 0.5069 GB, free: 13.2 MB / 346.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.003313/0.1268, allocations: 3.994 MB / 0.5108 GB, free: 9.18 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.129, allocations: 1.597 MB / 0.5124 GB, free: 7.488 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002534/0.1293, allocations: 12 kB / 0.5124 GB, free: 7.477 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003229/0.1296, allocations: 111.3 kB / 0.5125 GB, free: 7.367 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004285/0.13, allocations: 198.5 kB / 0.5127 GB, free: 7.172 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.1312, allocations: 0.9027 MB / 0.5136 GB, free: 6.176 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006221/0.1318, allocations: 0.7665 MB / 0.5143 GB, free: 5.406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002732/0.1321, allocations: 182.2 kB / 0.5145 GB, free: 5.211 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.1324, allocations: 298.5 kB / 0.5148 GB, free: 4.918 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003843/0.1328, allocations: 378 kB / 0.5151 GB, free: 4.547 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.439e-05/0.1328, allocations: 32 kB / 0.5152 GB, free: 4.516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002794/0.1331, allocations: 95.97 kB / 0.5153 GB, free: 4.422 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1332, allocations: 131.3 kB / 0.5154 GB, free: 4.293 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.1335, allocations: 379.4 kB / 0.5157 GB, free: 3.914 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006365/0.1342, allocations: 0.864 MB / 0.5166 GB, free: 3.047 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.1342, allocations: 4 kB / 0.5166 GB, free: 3.043 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1342, allocations: 0 / 0.5166 GB, free: 3.043 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.1342, allocations: 0 / 0.5166 GB, free: 3.043 MB / 346.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.00436/0.1386, allocations: 1.447 MB / 0.518 GB, free: 1.547 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.1386, allocations: 12.03 kB / 0.518 GB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002465/0.1411, allocations: 431.1 kB / 0.5184 GB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000509/0.1416, allocations: 0.5058 MB / 0.5189 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.1418, allocations: 201.8 kB / 0.5191 GB, free: 340 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.172e-05/0.1419, allocations: 55.91 kB / 0.5192 GB, free: 284 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.1434, allocations: 0.7248 MB / 0.5199 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.1434, allocations: 0 / 0.5199 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-05/0.1435, allocations: 24 kB / 0.5199 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1435, allocations: 19.94 kB / 0.5199 GB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.145, allocations: 0.7157 MB / 0.5206 GB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003702/0.1487, allocations: 2.172 MB / 0.5227 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008379/0.1571, allocations: 2.742 MB / 0.5254 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.1582, allocations: 0.5108 MB / 0.5259 GB, free: 9.168 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.925e-05/0.1583, allocations: 12.64 kB / 0.5259 GB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001203/0.1595, allocations: 0.5625 MB / 0.5265 GB, free: 8.578 MB / 362.7 MB Notification: Performance of pre-optimization done (n=73): time 3.898e-06/0.1595, allocations: 4 kB / 0.5265 GB, free: 8.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007495/0.167, allocations: 2.842 MB / 0.5293 GB, free: 5.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.1671, allocations: 56.06 kB / 0.5293 GB, free: 5.594 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006696/0.1678, allocations: 0.507 MB / 0.5298 GB, free: 5.078 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.8e-05/0.1679, allocations: 41.7 kB / 0.5298 GB, free: 5.031 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.1682, allocations: 328.6 kB / 0.5302 GB, free: 4.703 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/0.1684, allocations: 244.3 kB / 0.5304 GB, free: 4.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.194e-05/0.1685, allocations: 16 kB / 0.5304 GB, free: 4.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.1687, allocations: 382.8 kB / 0.5308 GB, free: 4.062 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009725/0.1697, allocations: 445.7 kB / 0.5312 GB, free: 3.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.1707, allocations: 0.5259 MB / 0.5317 GB, free: 3.074 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009334/0.1801, allocations: 2.791 MB / 0.5344 GB, free: 260 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.1801, allocations: 4 kB / 0.5344 GB, free: 256 kB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007693/0.1878, allocations: 2.634 MB / 0.537 GB, free: 13.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.1879, allocations: 4 kB / 0.537 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.1879, allocations: 4 kB / 0.537 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004118/0.192, allocations: 1.186 MB / 0.5382 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/0.1926, allocations: 111.8 kB / 0.5383 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009995/0.2026, allocations: 4.48 MB / 0.5427 GB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008693/0.2035, allocations: 119.3 kB / 0.5428 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.2037, allocations: 24 kB / 0.5428 GB, free: 7.535 MB / 378.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 ($PRE.ultc.zeroCrossing.disable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,$whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,ultc.zeroCrossing.disable,ultc.zeroCrossing.u_pos,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 (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.0004327/0.2041, allocations: 211.1 kB / 0.543 GB, free: 7.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.2043, allocations: 75.06 kB / 0.5431 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004998/0.2093, allocations: 1.952 MB / 0.545 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.2093, allocations: 15.97 kB / 0.545 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.2094, allocations: 0 / 0.545 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.2094, allocations: 4 kB / 0.545 GB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004901/0.2143, allocations: 2.605 MB / 0.5475 GB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.2143, allocations: 3.938 kB / 0.5475 GB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004204/0.2147, allocations: 71.89 kB / 0.5476 GB, free: 2.477 MB / 378.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.004192/0.2189, allocations: 1.251 MB / 0.5488 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.119e-05/0.219, allocations: 15.98 kB / 0.5488 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005703/0.2196, allocations: 128.7 kB / 0.549 GB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.2196, allocations: 3.938 kB / 0.549 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2143/0.4339, allocations: 2.212 MB / 0.5511 GB, free: 49.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.4342, allocations: 153.3 kB / 0.5513 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.4344, allocations: 14.94 kB / 0.5513 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006681/0.4351, allocations: 78.08 kB / 0.5514 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003875/0.4355, allocations: 117.8 kB / 0.5515 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.046e-05/0.4355, allocations: 18.56 kB / 0.5515 GB, free: 49.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005822/0.4361, allocations: 357.5 kB / 0.5518 GB, free: 49.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.4361, allocations: 0 / 0.5518 GB, free: 49.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001187/0.4373, allocations: 235.6 kB / 0.5521 GB, free: 49.64 MB / 378.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.000225/0.4376, allocations: 127.9 kB / 0.5522 GB, free: 49.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004341/0.4419, allocations: 1.732 MB / 0.5539 GB, free: 49.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4419, allocations: 0 / 0.5539 GB, free: 49.2 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/OpenIPSL 2.0.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3397:9-3397: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:1495:5-1495:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]