Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_OpenIPSL.Examples.Branches.Generic.ULTC") translateModel(OpenIPSL.Examples.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_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.001183/0.001183, allocations: 178.8 kB / 15.43 MB, free: 5.777 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.354/1.354, allocations: 225.7 MB / 241.9 MB, free: 408 kB / 186.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.0007463/0.0007464, allocations: 90.72 kB / 293.1 MB, free: 12.89 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.1645/0.1645, allocations: 43.17 MB / 387.4 MB, free: 15.49 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 8 kB / 458.6 MB, free: 55.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1247, allocations: 60.51 MB / 0.5069 GB, free: 10.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.Branches.Generic.ULTC): time 0.004517/0.1292, allocations: 3.994 MB / 0.5108 GB, free: 6.832 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.1325, allocations: 1.605 MB / 0.5124 GB, free: 5.133 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003292/0.1329, allocations: 8 kB / 0.5124 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000387/0.1333, allocations: 111.3 kB / 0.5125 GB, free: 5.016 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005201/0.1338, allocations: 190.6 kB / 0.5127 GB, free: 4.828 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.1353, allocations: 0.9066 MB / 0.5136 GB, free: 3.828 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008004/0.1361, allocations: 0.7704 MB / 0.5143 GB, free: 3.055 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003168/0.1364, allocations: 174.2 kB / 0.5145 GB, free: 2.867 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.1367, allocations: 298.5 kB / 0.5148 GB, free: 2.574 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004555/0.1372, allocations: 378 kB / 0.5151 GB, free: 2.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.86e-05/0.1373, allocations: 32 kB / 0.5152 GB, free: 2.172 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003135/0.1376, allocations: 99.95 kB / 0.5153 GB, free: 2.074 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.1377, allocations: 139.2 kB / 0.5154 GB, free: 1.938 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003679/0.1381, allocations: 383.4 kB / 0.5158 GB, free: 1.555 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008317/0.139, allocations: 0.8524 MB / 0.5166 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.139, allocations: 0 / 0.5166 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.139, allocations: 4 kB / 0.5166 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.139, allocations: 0 / 0.5166 GB, free: 0.6953 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.004047/0.1431, allocations: 1.451 MB / 0.518 GB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.1431, allocations: 8.031 kB / 0.518 GB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002433/0.1456, allocations: 435 kB / 0.5184 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.1463, allocations: 0.4981 MB / 0.5189 GB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.1465, allocations: 205.8 kB / 0.5191 GB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.1466, allocations: 51.91 kB / 0.5192 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.1481, allocations: 0.7326 MB / 0.5199 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1481, allocations: 0 / 0.5199 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.356e-05/0.1482, allocations: 20 kB / 0.5199 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.1482, allocations: 19.94 kB / 0.5199 GB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.1497, allocations: 0.7157 MB / 0.5206 GB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003723/0.1534, allocations: 2.168 MB / 0.5227 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008213/0.1616, allocations: 2.751 MB / 0.5254 GB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.1628, allocations: 0.5108 MB / 0.5259 GB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.471e-05/0.1629, allocations: 4.656 kB / 0.5259 GB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.1641, allocations: 0.5664 MB / 0.5265 GB, free: 6.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=73): time 3.396e-06/0.1641, allocations: 4 kB / 0.5265 GB, free: 6.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007655/0.1718, allocations: 2.834 MB / 0.5293 GB, free: 3.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.1719, allocations: 64 kB / 0.5293 GB, free: 3.242 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006794/0.1725, allocations: 0.4992 MB / 0.5298 GB, free: 2.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.1726, allocations: 45.69 kB / 0.5298 GB, free: 2.684 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.1729, allocations: 320.6 kB / 0.5302 GB, free: 2.363 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.1731, allocations: 260.3 kB / 0.5304 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.1732, allocations: 15.94 kB / 0.5304 GB, free: 2.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1734, allocations: 382.8 kB / 0.5308 GB, free: 1.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009549/0.1743, allocations: 441.8 kB / 0.5312 GB, free: 1.277 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.1754, allocations: 0.5298 MB / 0.5317 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2803/0.4557, allocations: 2.782 MB / 0.5344 GB, free: 32.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.4557, allocations: 1.094 kB / 0.5344 GB, free: 32.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008134/0.4639, allocations: 2.632 MB / 0.537 GB, free: 32.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.464, allocations: 6.188 kB / 0.537 GB, free: 32.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.464, allocations: 5.969 kB / 0.537 GB, free: 32.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004383/0.4684, allocations: 1.184 MB / 0.5382 GB, free: 32.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005733/0.469, allocations: 110.9 kB / 0.5383 GB, free: 32.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009499/0.4785, allocations: 4.474 MB / 0.5427 GB, free: 29.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008691/0.4794, allocations: 122.4 kB / 0.5428 GB, free: 29.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/0.4794, allocations: 26.83 kB / 0.5428 GB, free: 29.93 MB / 362.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.0003485/0.4798, allocations: 208.8 kB / 0.543 GB, free: 29.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.4799, allocations: 72.92 kB / 0.5431 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005344/0.4853, allocations: 1.948 MB / 0.545 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.4853, allocations: 7.969 kB / 0.545 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4853, allocations: 0.6562 kB / 0.545 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.4853, allocations: 6.094 kB / 0.545 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005155/0.4905, allocations: 2.612 MB / 0.5475 GB, free: 27.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.4905, allocations: 0 / 0.5475 GB, free: 27.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004094/0.4909, allocations: 73.59 kB / 0.5476 GB, free: 27.93 MB / 362.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.004403/0.4954, allocations: 1.252 MB / 0.5488 GB, free: 27.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.302e-05/0.4955, allocations: 14.44 kB / 0.5488 GB, free: 27.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000599/0.4961, allocations: 126.8 kB / 0.549 GB, free: 27.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4961, allocations: 11.67 kB / 0.549 GB, free: 27.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004717/0.5008, allocations: 2.211 MB / 0.5511 GB, free: 26.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/0.5011, allocations: 149.3 kB / 0.5513 GB, free: 26.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.5012, allocations: 16.38 kB / 0.5513 GB, free: 26.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006199/0.5018, allocations: 86.92 kB / 0.5514 GB, free: 26.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.5021, allocations: 115.7 kB / 0.5515 GB, free: 26.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.812e-05/0.5022, allocations: 24.28 kB / 0.5515 GB, free: 26.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004141/0.5026, allocations: 349.7 kB / 0.5518 GB, free: 26.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5026, allocations: 4 kB / 0.5518 GB, free: 26.26 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000926/0.5035, allocations: 236.9 kB / 0.5521 GB, free: 26.22 MB / 362.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.000187/0.5037, allocations: 124 kB / 0.5522 GB, free: 26.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.5074, allocations: 1.738 MB / 0.5539 GB, free: 25.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.5074, allocations: 0 / 0.5539 GB, free: 25.16 MB / 362.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]