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.001702/0.001702, allocations: 96.61 kB / 16.29 MB, free: 5.918 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.376/1.376, allocations: 222.9 MB / 239.9 MB, free: 4.609 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.001362/0.001362, allocations: 196.4 kB / 290.2 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4428/0.4428, allocations: 78.52 MB / 418.9 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 79.86 kB / 498.2 MB, free: 6.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1316, allocations: 68.18 MB / 0.5531 GB, free: 2.207 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2175/0.3491, allocations: 4.351 MB / 0.5573 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.3514, allocations: 1.237 MB / 0.5585 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005002/0.3519, allocations: 5.844 kB / 0.5585 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004799/0.3524, allocations: 144.6 kB / 0.5587 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007473/0.3532, allocations: 236 kB / 0.5589 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.3544, allocations: 0.5721 MB / 0.5594 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008864/0.3553, allocations: 0.8022 MB / 0.5602 GB, free: 36.56 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003293/0.3557, allocations: 195.8 kB / 0.5604 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004612/0.3561, allocations: 329.8 kB / 0.5607 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005549/0.3567, allocations: 419 kB / 0.5611 GB, free: 36.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.3569, allocations: 64.78 kB / 0.5612 GB, free: 36.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000358/0.3572, allocations: 128.2 kB / 0.5613 GB, free: 36.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.3574, allocations: 174.8 kB / 0.5615 GB, free: 36.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003283/0.3577, allocations: 385.8 kB / 0.5619 GB, free: 36.15 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007234/0.3584, allocations: 0.916 MB / 0.5627 GB, free: 35.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3584, allocations: 0 / 0.5627 GB, free: 35.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3585, allocations: 0 / 0.5627 GB, free: 35.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.3585, allocations: 0 / 0.5627 GB, free: 35.95 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.00378/0.3623, allocations: 1.567 MB / 0.5643 GB, free: 35.28 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.3623, allocations: 8.562 kB / 0.5643 GB, free: 35.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002319/0.3646, allocations: 430.1 kB / 0.5647 GB, free: 35.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005762/0.3652, allocations: 0.4938 MB / 0.5652 GB, free: 34.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.3654, allocations: 200.6 kB / 0.5654 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.3655, allocations: 51.89 kB / 0.5654 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3668, allocations: 0.6895 MB / 0.5661 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.3669, allocations: 1.344 kB / 0.5661 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.248e-05/0.3669, allocations: 29.05 kB / 0.5661 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.367, allocations: 17.5 kB / 0.5661 GB, free: 34.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.3682, allocations: 0.6691 MB / 0.5668 GB, free: 34.72 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.3712, allocations: 2.137 MB / 0.5689 GB, free: 34.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007077/0.3783, allocations: 2.262 MB / 0.5711 GB, free: 33.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008117/0.3792, allocations: 490.1 kB / 0.5716 GB, free: 33.61 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.84e-05/0.3792, allocations: 11.48 kB / 0.5716 GB, free: 33.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.3803, allocations: 0.5316 MB / 0.5721 GB, free: 33.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.935e-06/0.3803, allocations: 0 / 0.5721 GB, free: 33.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006186/0.3865, allocations: 2.455 MB / 0.5745 GB, free: 33.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.3865, allocations: 63.48 kB / 0.5745 GB, free: 33.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004769/0.387, allocations: 0.5079 MB / 0.575 GB, free: 32.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.56e-05/0.3871, allocations: 41.92 kB / 0.5751 GB, free: 32.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.3873, allocations: 326.3 kB / 0.5754 GB, free: 32.74 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.3875, allocations: 248.6 kB / 0.5756 GB, free: 32.58 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.3877, allocations: 123.3 kB / 0.5757 GB, free: 32.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.577e-05/0.3878, allocations: 381.6 kB / 0.5761 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007231/0.3885, allocations: 404.6 kB / 0.5765 GB, free: 32.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007411/0.3893, allocations: 500 kB / 0.577 GB, free: 32.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007908/0.3972, allocations: 2.52 MB / 0.5794 GB, free: 31.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3972, allocations: 3.469 kB / 0.5794 GB, free: 31.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006573/0.4038, allocations: 2.215 MB / 0.5816 GB, free: 30.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.4038, allocations: 5.094 kB / 0.5816 GB, free: 30.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.4038, allocations: 2.406 kB / 0.5816 GB, free: 30.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003697/0.4075, allocations: 0.9965 MB / 0.5826 GB, free: 30.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005898/0.4082, allocations: 110.3 kB / 0.5827 GB, free: 30.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008619/0.4168, allocations: 4.495 MB / 0.5871 GB, free: 28.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007892/0.4176, allocations: 102.9 kB / 0.5872 GB, free: 28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-05/0.4177, allocations: 22.78 kB / 0.5872 GB, free: 28 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.0003149/0.418, allocations: 209.6 kB / 0.5874 GB, free: 27.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.4181, allocations: 71.03 kB / 0.5875 GB, free: 27.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00425/0.4224, allocations: 1.692 MB / 0.5891 GB, free: 27.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.4224, allocations: 7.406 kB / 0.5891 GB, free: 27.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.4224, allocations: 0 / 0.5891 GB, free: 27.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4224, allocations: 8.562 kB / 0.5891 GB, free: 27.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003981/0.4264, allocations: 2.448 MB / 0.5915 GB, free: 26.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.4264, allocations: 4 kB / 0.5915 GB, free: 26.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.4268, allocations: 70.12 kB / 0.5916 GB, free: 26.03 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.004034/0.4309, allocations: 1.06 MB / 0.5926 GB, free: 25.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.898e-05/0.431, allocations: 13 kB / 0.5926 GB, free: 25.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005455/0.4315, allocations: 107.1 kB / 0.5927 GB, free: 25.79 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4315, allocations: 1.531 kB / 0.5927 GB, free: 25.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004097/0.4356, allocations: 2.007 MB / 0.5947 GB, free: 24.94 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/0.4358, allocations: 147.1 kB / 0.5948 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.436, allocations: 17.95 kB / 0.5949 GB, free: 24.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006165/0.4366, allocations: 53.91 kB / 0.5949 GB, free: 24.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.4369, allocations: 120.4 kB / 0.595 GB, free: 24.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/0.437, allocations: 23.53 kB / 0.595 GB, free: 24.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003945/0.4374, allocations: 354.2 kB / 0.5954 GB, free: 24.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4374, allocations: 0 / 0.5954 GB, free: 24.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007804/0.4381, allocations: 238 kB / 0.5956 GB, free: 24.55 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.0002105/0.4384, allocations: 126.7 kB / 0.5957 GB, free: 24.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003816/0.4422, allocations: 1.591 MB / 0.5973 GB, free: 23.72 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4422, allocations: 0 / 0.5973 GB, free: 23.72 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3520:9-3520: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1547:5-1547:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:802:5-802:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]