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.001115/0.001115, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.342/1.342, allocations: 222.9 MB / 239 MB, free: 4.699 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.001572/0.001572, allocations: 184.5 kB / 289.3 MB, free: 2.445 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4643/0.4643, allocations: 78.51 MB / 417.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001396, allocations: 72.17 kB / 496.9 MB, free: 6.688 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1449, allocations: 68.18 MB / 0.5519 GB, free: 2.469 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2762/0.4212, allocations: 4.636 MB / 0.5564 GB, free: 37.16 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.4233, allocations: 1.268 MB / 0.5576 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.4236, allocations: 5.812 kB / 0.5577 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.424, allocations: 120.2 kB / 0.5578 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004559/0.4245, allocations: 187.9 kB / 0.5579 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.4255, allocations: 0.5266 MB / 0.5585 GB, free: 36.62 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006174/0.4262, allocations: 0.8046 MB / 0.5592 GB, free: 36.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.4264, allocations: 198.3 kB / 0.5594 GB, free: 36.53 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.4267, allocations: 331.2 kB / 0.5598 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.4271, allocations: 411.2 kB / 0.5601 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.999e-05/0.4272, allocations: 62.84 kB / 0.5602 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.4275, allocations: 130.5 kB / 0.5603 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.4276, allocations: 168.3 kB / 0.5605 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.4279, allocations: 394.9 kB / 0.5609 GB, free: 36.17 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007083/0.4286, allocations: 0.9035 MB / 0.5617 GB, free: 35.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4286, allocations: 0 / 0.5617 GB, free: 35.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4286, allocations: 1.469 kB / 0.5617 GB, free: 35.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.4286, allocations: 0 / 0.5617 GB, free: 35.96 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.003795/0.4324, allocations: 1.566 MB / 0.5633 GB, free: 35.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.4325, allocations: 12.47 kB / 0.5633 GB, free: 35.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.4348, allocations: 426.7 kB / 0.5637 GB, free: 35.24 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.4353, allocations: 0.4959 MB / 0.5642 GB, free: 34.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.4355, allocations: 196.7 kB / 0.5644 GB, free: 34.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.963e-05/0.4356, allocations: 55.72 kB / 0.5644 GB, free: 34.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.4369, allocations: 0.6948 MB / 0.5651 GB, free: 34.74 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.4369, allocations: 0 / 0.5651 GB, free: 34.74 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.437, allocations: 19.81 kB / 0.5651 GB, free: 34.74 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.437, allocations: 17.14 kB / 0.5651 GB, free: 34.74 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.4382, allocations: 0.6734 MB / 0.5658 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003146/0.4414, allocations: 2.149 MB / 0.5679 GB, free: 34.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006858/0.4483, allocations: 2.27 MB / 0.5701 GB, free: 33.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009034/0.4492, allocations: 484 kB / 0.5706 GB, free: 33.61 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.484e-05/0.4493, allocations: 9.047 kB / 0.5706 GB, free: 33.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001041/0.4503, allocations: 0.5332 MB / 0.5711 GB, free: 33.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.626e-06/0.4504, allocations: 0 / 0.5711 GB, free: 33.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006384/0.4567, allocations: 2.456 MB / 0.5735 GB, free: 33.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/0.4568, allocations: 57.81 kB / 0.5736 GB, free: 33.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005034/0.4573, allocations: 0.5099 MB / 0.5741 GB, free: 32.94 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.684e-05/0.4574, allocations: 42.05 kB / 0.5741 GB, free: 32.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.4576, allocations: 320.5 kB / 0.5744 GB, free: 32.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.4577, allocations: 257.3 kB / 0.5746 GB, free: 32.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.4579, allocations: 122.3 kB / 0.5748 GB, free: 32.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.458, allocations: 381.8 kB / 0.5751 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007274/0.4588, allocations: 397.3 kB / 0.5755 GB, free: 32.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007655/0.4595, allocations: 0.5001 MB / 0.576 GB, free: 32.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007969/0.4675, allocations: 2.524 MB / 0.5785 GB, free: 31.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4676, allocations: 1.062 kB / 0.5785 GB, free: 31.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006461/0.474, allocations: 2.21 MB / 0.5806 GB, free: 30.81 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.4741, allocations: 5.031 kB / 0.5806 GB, free: 30.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4741, allocations: 6.188 kB / 0.5806 GB, free: 30.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003634/0.4777, allocations: 0.9972 MB / 0.5816 GB, free: 30.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.4783, allocations: 107.4 kB / 0.5817 GB, free: 30.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008247/0.4866, allocations: 4.506 MB / 0.5861 GB, free: 28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008066/0.4874, allocations: 102.8 kB / 0.5862 GB, free: 27.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.565e-05/0.4875, allocations: 26.69 kB / 0.5862 GB, free: 27.95 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.000344/0.4878, allocations: 202.6 kB / 0.5864 GB, free: 27.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.4879, allocations: 72.56 kB / 0.5865 GB, free: 27.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004206/0.4921, allocations: 1.689 MB / 0.5881 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.4922, allocations: 7.188 kB / 0.5881 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4922, allocations: 2.031 kB / 0.5881 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.4922, allocations: 11.47 kB / 0.5882 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004054/0.4962, allocations: 2.445 MB / 0.5905 GB, free: 25.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4963, allocations: 0.9844 kB / 0.5905 GB, free: 25.99 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000373/0.4966, allocations: 72.33 kB / 0.5906 GB, free: 25.98 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.00392/0.5006, allocations: 1.07 MB / 0.5917 GB, free: 25.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.49e-05/0.5007, allocations: 15.42 kB / 0.5917 GB, free: 25.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005707/0.5012, allocations: 105.1 kB / 0.5918 GB, free: 25.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5013, allocations: 1.375 kB / 0.5918 GB, free: 25.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004317/0.5056, allocations: 2.006 MB / 0.5937 GB, free: 24.89 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.5058, allocations: 148.8 kB / 0.5939 GB, free: 24.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.506, allocations: 17.11 kB / 0.5939 GB, free: 24.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006295/0.5066, allocations: 57.97 kB / 0.5939 GB, free: 24.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003576/0.507, allocations: 120 kB / 0.5941 GB, free: 24.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-05/0.507, allocations: 23.94 kB / 0.5941 GB, free: 24.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004331/0.5075, allocations: 355.4 kB / 0.5944 GB, free: 24.53 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5075, allocations: 0 / 0.5944 GB, free: 24.53 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008058/0.5083, allocations: 233.4 kB / 0.5946 GB, free: 24.49 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.0001764/0.5085, allocations: 119.9 kB / 0.5948 GB, free: 24.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003942/0.5124, allocations: 1.619 MB / 0.5963 GB, free: 23.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5124, allocations: 1.031 kB / 0.5963 GB, free: 23.66 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:3470:9-3470: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:1543:5-1543:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]