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.001093/0.001093, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 239.2 MB, free: 4.645 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.001597/0.001597, allocations: 200.1 kB / 289.5 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4926/0.4926, allocations: 78.52 MB / 418.2 MB, free: 3.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 79.88 kB / 497.4 MB, free: 6.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1403, allocations: 68.18 MB / 0.5524 GB, free: 2.227 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2516/0.3919, allocations: 4.367 MB / 0.5566 GB, free: 37.22 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.3939, allocations: 1.235 MB / 0.5578 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002167/0.3941, allocations: 5.812 kB / 0.5578 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003806/0.3946, allocations: 146.8 kB / 0.558 GB, free: 36.83 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004956/0.3951, allocations: 235.1 kB / 0.5582 GB, free: 36.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.3963, allocations: 0.5683 MB / 0.5588 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007239/0.397, allocations: 0.7934 MB / 0.5595 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003391/0.3974, allocations: 202.9 kB / 0.5597 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002895/0.3977, allocations: 330.8 kB / 0.56 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004747/0.3982, allocations: 416.3 kB / 0.5604 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.3983, allocations: 63.22 kB / 0.5605 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003152/0.3986, allocations: 134.9 kB / 0.5606 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.3987, allocations: 167.4 kB / 0.5608 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.3991, allocations: 389.5 kB / 0.5612 GB, free: 36.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007889/0.3999, allocations: 0.9044 MB / 0.562 GB, free: 36.03 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3999, allocations: 1.125 kB / 0.562 GB, free: 36.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3999, allocations: 0 / 0.562 GB, free: 36.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.3999, allocations: 0 / 0.562 GB, free: 36.03 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.004108/0.404, allocations: 1.571 MB / 0.5636 GB, free: 35.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.4041, allocations: 12.48 kB / 0.5636 GB, free: 35.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002596/0.4067, allocations: 427.5 kB / 0.564 GB, free: 35.31 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.4073, allocations: 0.4904 MB / 0.5645 GB, free: 35.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.4076, allocations: 195.1 kB / 0.5647 GB, free: 34.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.4077, allocations: 56.59 kB / 0.5647 GB, free: 34.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.409, allocations: 0.6895 MB / 0.5654 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.4091, allocations: 3.75 kB / 0.5654 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.807e-05/0.4091, allocations: 25.41 kB / 0.5654 GB, free: 34.81 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.4091, allocations: 16.59 kB / 0.5654 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.4104, allocations: 0.6726 MB / 0.5661 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.4134, allocations: 2.154 MB / 0.5682 GB, free: 34.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007215/0.4206, allocations: 2.259 MB / 0.5704 GB, free: 33.7 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008173/0.4215, allocations: 485.6 kB / 0.5709 GB, free: 33.69 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.739e-05/0.4215, allocations: 11.03 kB / 0.5709 GB, free: 33.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009809/0.4225, allocations: 0.5218 MB / 0.5714 GB, free: 33.62 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.886e-06/0.4225, allocations: 0 / 0.5714 GB, free: 33.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006434/0.429, allocations: 2.463 MB / 0.5738 GB, free: 33.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.429, allocations: 57.88 kB / 0.5738 GB, free: 33.13 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005072/0.4295, allocations: 0.5139 MB / 0.5743 GB, free: 33.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.787e-05/0.4296, allocations: 42.2 kB / 0.5744 GB, free: 32.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.4298, allocations: 323.9 kB / 0.5747 GB, free: 32.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.43, allocations: 247 kB / 0.5749 GB, free: 32.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.4302, allocations: 121.6 kB / 0.575 GB, free: 32.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.588e-05/0.4303, allocations: 382.2 kB / 0.5754 GB, free: 32.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007589/0.431, allocations: 406.4 kB / 0.5758 GB, free: 32.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000801/0.4318, allocations: 0.4957 MB / 0.5763 GB, free: 32.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008215/0.4401, allocations: 2.523 MB / 0.5787 GB, free: 31.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.4401, allocations: 1.188 kB / 0.5787 GB, free: 31.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006928/0.447, allocations: 2.218 MB / 0.5809 GB, free: 30.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.4471, allocations: 6.688 kB / 0.5809 GB, free: 30.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.4471, allocations: 1.031 kB / 0.5809 GB, free: 30.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003833/0.4509, allocations: 0.9949 MB / 0.5819 GB, free: 30.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.4515, allocations: 114.2 kB / 0.582 GB, free: 30.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008756/0.4603, allocations: 4.503 MB / 0.5864 GB, free: 28.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009286/0.4613, allocations: 103.2 kB / 0.5865 GB, free: 28.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-05/0.4613, allocations: 26.06 kB / 0.5865 GB, free: 28.06 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xp:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xq: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.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1) * 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.0003509/0.4617, allocations: 201.2 kB / 0.5867 GB, free: 27.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.4618, allocations: 73.34 kB / 0.5868 GB, free: 27.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004535/0.4663, allocations: 1.7 MB / 0.5884 GB, free: 27.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.4664, allocations: 7.031 kB / 0.5884 GB, free: 27.31 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.4664, allocations: 1.219 kB / 0.5884 GB, free: 27.31 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.4664, allocations: 7.875 kB / 0.5885 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.4708, allocations: 2.441 MB / 0.5908 GB, free: 26.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.4708, allocations: 1.156 kB / 0.5908 GB, free: 26.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.4712, allocations: 74.64 kB / 0.5909 GB, free: 26.09 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.004265/0.4755, allocations: 1.062 MB / 0.5919 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.4756, allocations: 13.56 kB / 0.592 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005787/0.4762, allocations: 105 kB / 0.5921 GB, free: 25.85 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.4762, allocations: 0 / 0.5921 GB, free: 25.85 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.4807, allocations: 2.012 MB / 0.594 GB, free: 25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.481, allocations: 147.8 kB / 0.5942 GB, free: 24.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.4811, allocations: 17.59 kB / 0.5942 GB, free: 24.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006088/0.4817, allocations: 57.59 kB / 0.5942 GB, free: 24.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.482, allocations: 124.8 kB / 0.5944 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.995e-05/0.4821, allocations: 19.14 kB / 0.5944 GB, free: 24.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004285/0.4825, allocations: 350.7 kB / 0.5947 GB, free: 24.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4825, allocations: 1.406 kB / 0.5947 GB, free: 24.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007996/0.4833, allocations: 236.6 kB / 0.5949 GB, free: 24.61 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 (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.000208/0.4835, allocations: 122.8 kB / 0.5951 GB, free: 24.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004247/0.4878, allocations: 1.613 MB / 0.5966 GB, free: 23.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4878, allocations: 5.625 kB / 0.5966 GB, free: 23.77 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:3521:9-3521: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:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]