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-master/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-master/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1406/0.1406, allocations: 12.6 MB / 28.1 MB, free: 0.832 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.001262/0.001262, allocations: 107.5 kB / 31.69 MB, free: 3.965 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.511/1.511, allocations: 205.1 MB / 240.3 MB, free: 12.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 188.5 kB / 290.5 MB, free: 13.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.5372/0.5372, allocations: 78.5 MB / 419.2 MB, free: 11.38 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.002867/0.002868, allocations: 135.8 kB / 499.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3691, allocations: 68.11 MB / 0.5546 GB, free: 32.46 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005923/0.3751, allocations: 4.419 MB / 0.5589 GB, free: 29.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.378, allocations: 1.203 MB / 0.5601 GB, free: 28.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000314/0.3784, allocations: 5.375 kB / 0.5601 GB, free: 28.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004606/0.3788, allocations: 149.5 kB / 0.5602 GB, free: 28.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000633/0.3795, allocations: 230.1 kB / 0.5604 GB, free: 28.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.3809, allocations: 0.5844 MB / 0.561 GB, free: 27.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008099/0.3817, allocations: 0.7937 MB / 0.5618 GB, free: 27.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003853/0.3821, allocations: 202.6 kB / 0.562 GB, free: 27.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003398/0.3824, allocations: 339 kB / 0.5623 GB, free: 26.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005085/0.383, allocations: 410.5 kB / 0.5627 GB, free: 26.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.3831, allocations: 63.59 kB / 0.5627 GB, free: 26.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003628/0.3835, allocations: 125.8 kB / 0.5629 GB, free: 26.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.3836, allocations: 172.7 kB / 0.563 GB, free: 26.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003444/0.384, allocations: 394.2 kB / 0.5634 GB, free: 26.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008824/0.3849, allocations: 0.9031 MB / 0.5643 GB, free: 25.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3849, allocations: 0 / 0.5643 GB, free: 25.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3849, allocations: 0 / 0.5643 GB, free: 25.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.3849, allocations: 1.281 kB / 0.5643 GB, free: 25.5 MB / 398.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.004414/0.3893, allocations: 1.558 MB / 0.5658 GB, free: 24.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3894, allocations: 13.08 kB / 0.5658 GB, free: 24.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002498/0.3919, allocations: 425 kB / 0.5662 GB, free: 24.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007099/0.3926, allocations: 0.5031 MB / 0.5667 GB, free: 23.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/0.3928, allocations: 197.9 kB / 0.5669 GB, free: 23.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.393, allocations: 63.89 kB / 0.567 GB, free: 23.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.3944, allocations: 0.686 MB / 0.5676 GB, free: 23.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3945, allocations: 1.781 kB / 0.5676 GB, free: 23.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.766e-05/0.3945, allocations: 19.81 kB / 0.5677 GB, free: 23.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.3946, allocations: 17.03 kB / 0.5677 GB, free: 23.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.396, allocations: 0.672 MB / 0.5683 GB, free: 22.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004192/0.4002, allocations: 2.141 MB / 0.5704 GB, free: 21.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008018/0.4083, allocations: 2.271 MB / 0.5726 GB, free: 19.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.4094, allocations: 483 kB / 0.5731 GB, free: 19.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.553e-05/0.4095, allocations: 7.969 kB / 0.5731 GB, free: 19.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00111/0.4106, allocations: 0.5317 MB / 0.5736 GB, free: 19.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.276e-06/0.4106, allocations: 1.188 kB / 0.5736 GB, free: 19.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.006705/0.4173, allocations: 2.453 MB / 0.576 GB, free: 17.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.4174, allocations: 60.06 kB / 0.5761 GB, free: 17.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005154/0.4179, allocations: 0.507 MB / 0.5766 GB, free: 16.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.971e-05/0.418, allocations: 49.69 kB / 0.5766 GB, free: 16.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.4182, allocations: 320.6 kB / 0.5769 GB, free: 16.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.4184, allocations: 252.3 kB / 0.5772 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.4186, allocations: 122.7 kB / 0.5773 GB, free: 15.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.978e-05/0.4187, allocations: 382.8 kB / 0.5776 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007666/0.4195, allocations: 401.8 kB / 0.578 GB, free: 15.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007862/0.4203, allocations: 0.4946 MB / 0.5785 GB, free: 14.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008192/0.4285, allocations: 2.526 MB / 0.581 GB, free: 11.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.4285, allocations: 0 / 0.581 GB, free: 11.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00655/0.4351, allocations: 2.212 MB / 0.5831 GB, free: 9.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.4351, allocations: 8 kB / 0.5831 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.4351, allocations: 4 kB / 0.5831 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003693/0.4388, allocations: 1.005 MB / 0.5841 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.4394, allocations: 111.8 kB / 0.5842 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00894/0.4483, allocations: 4.502 MB / 0.5886 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009991/0.4494, allocations: 99.31 kB / 0.5887 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.4495, allocations: 24 kB / 0.5888 GB, free: 3.84 MB / 398.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.0005024/0.45, allocations: 213.2 kB / 0.589 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.4503, allocations: 71.16 kB / 0.589 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004476/0.4547, allocations: 1.698 MB / 0.5907 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.4548, allocations: 8 kB / 0.5907 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.4548, allocations: 4 kB / 0.5907 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4548, allocations: 7.922 kB / 0.5907 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004433/0.4592, allocations: 2.437 MB / 0.5931 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.4593, allocations: 0 / 0.5931 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.4597, allocations: 75.78 kB / 0.5932 GB, free: 15.22 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.004195/0.4639, allocations: 1.069 MB / 0.5942 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.952e-05/0.464, allocations: 16 kB / 0.5942 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005786/0.4646, allocations: 100.8 kB / 0.5943 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4646, allocations: 3.938 kB / 0.5943 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004616/0.4692, allocations: 2.011 MB / 0.5963 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003601/0.4696, allocations: 152.1 kB / 0.5964 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.4698, allocations: 15.94 kB / 0.5964 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007711/0.4706, allocations: 51.94 kB / 0.5965 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.471, allocations: 128.5 kB / 0.5966 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.705e-05/0.471, allocations: 16 kB / 0.5966 GB, free: 11.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005826/0.4716, allocations: 354.8 kB / 0.597 GB, free: 11.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4716, allocations: 0 / 0.597 GB, free: 11.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00102/0.4727, allocations: 235.8 kB / 0.5972 GB, free: 11.03 MB / 414.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.0002493/0.4729, allocations: 115.2 kB / 0.5973 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004569/0.4775, allocations: 1.615 MB / 0.5989 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4775, allocations: 0 / 0.5989 GB, free: 9.242 MB / 414.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/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]