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.0008133/0.0008136, allocations: 99.5 kB / 16.02 MB, free: 76 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.332/1.332, allocations: 223.3 MB / 240 MB, free: 5.281 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.001044/0.001044, allocations: 176.5 kB / 291.3 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4894/0.4894, allocations: 78.54 MB / 420.9 MB, free: 4.215 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003911/0.0003912, allocations: 8 kB / 0.4893 GB, free: 5.988 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1578, allocations: 69.37 MB / 0.557 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.3092/0.4671, allocations: 4.225 MB / 0.5612 GB, free: 37.54 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.4694, allocations: 1.254 MB / 0.5624 GB, free: 37.01 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000218/0.4696, allocations: 5.656 kB / 0.5624 GB, free: 37.01 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.47, allocations: 119 kB / 0.5625 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004331/0.4704, allocations: 185.1 kB / 0.5627 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.4715, allocations: 0.5287 MB / 0.5632 GB, free: 36.71 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007053/0.4722, allocations: 0.7637 MB / 0.5639 GB, free: 36.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003014/0.4725, allocations: 169.1 kB / 0.5641 GB, free: 36.46 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002694/0.4728, allocations: 300.5 kB / 0.5644 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004287/0.4733, allocations: 383.5 kB / 0.5648 GB, free: 36.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.708e-05/0.4733, allocations: 34.28 kB / 0.5648 GB, free: 36.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.4736, allocations: 97.66 kB / 0.5649 GB, free: 36.24 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.4737, allocations: 137.5 kB / 0.565 GB, free: 36.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.474, allocations: 387.6 kB / 0.5654 GB, free: 36.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005844/0.4746, allocations: 0.6671 MB / 0.566 GB, free: 35.9 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.4746, allocations: 0 / 0.566 GB, free: 35.9 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4747, allocations: 0 / 0.566 GB, free: 35.9 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.4747, allocations: 0 / 0.566 GB, free: 35.9 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.003804/0.4785, allocations: 1.443 MB / 0.5674 GB, free: 35.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.4785, allocations: 8.719 kB / 0.5674 GB, free: 35.27 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002367/0.4809, allocations: 431.5 kB / 0.5679 GB, free: 35.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005847/0.4815, allocations: 0.4994 MB / 0.5683 GB, free: 34.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.4817, allocations: 200.5 kB / 0.5685 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.4818, allocations: 54.72 kB / 0.5686 GB, free: 34.75 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.4832, allocations: 0.7292 MB / 0.5693 GB, free: 34.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.4833, allocations: 1.25 kB / 0.5693 GB, free: 34.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.216e-05/0.4833, allocations: 27.98 kB / 0.5693 GB, free: 34.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.4834, allocations: 19.5 kB / 0.5693 GB, free: 34.69 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.4847, allocations: 0.7149 MB / 0.57 GB, free: 34.69 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.488, allocations: 2.179 MB / 0.5722 GB, free: 34.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007884/0.4959, allocations: 2.745 MB / 0.5749 GB, free: 33.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009761/0.4969, allocations: 0.5219 MB / 0.5754 GB, free: 33.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.335e-05/0.497, allocations: 10.05 kB / 0.5754 GB, free: 33.46 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.4981, allocations: 0.5735 MB / 0.5759 GB, free: 33.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.016e-06/0.4981, allocations: 0 / 0.5759 GB, free: 33.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.007428/0.5056, allocations: 2.84 MB / 0.5787 GB, free: 32.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.5056, allocations: 60.53 kB / 0.5788 GB, free: 32.85 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005547/0.5062, allocations: 0.5164 MB / 0.5793 GB, free: 32.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.8e-05/0.5063, allocations: 38.98 kB / 0.5793 GB, free: 32.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/0.5065, allocations: 327.7 kB / 0.5796 GB, free: 32.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.5067, allocations: 251.2 kB / 0.5799 GB, free: 32.37 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.65e-05/0.5068, allocations: 67.7 kB / 0.5799 GB, free: 32.35 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.451e-05/0.5069, allocations: 382.9 kB / 0.5803 GB, free: 32.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008866/0.5078, allocations: 447 kB / 0.5807 GB, free: 32.03 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008867/0.5087, allocations: 0.5289 MB / 0.5812 GB, free: 31.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009292/0.518, allocations: 2.8 MB / 0.584 GB, free: 31.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.518, allocations: 0 / 0.584 GB, free: 31.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008177/0.5262, allocations: 2.636 MB / 0.5865 GB, free: 30.56 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.5263, allocations: 5.75 kB / 0.5865 GB, free: 30.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.5263, allocations: 2.219 kB / 0.5865 GB, free: 30.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004368/0.5307, allocations: 1.184 MB / 0.5877 GB, free: 30.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.5313, allocations: 109.4 kB / 0.5878 GB, free: 30.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008908/0.5402, allocations: 4.481 MB / 0.5922 GB, free: 27.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009183/0.5412, allocations: 119.7 kB / 0.5923 GB, free: 27.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.5412, allocations: 26.59 kB / 0.5923 GB, free: 27.85 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.0003716/0.5416, allocations: 210.1 kB / 0.5925 GB, free: 27.67 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.5417, allocations: 74.09 kB / 0.5926 GB, free: 27.63 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004934/0.5467, allocations: 1.956 MB / 0.5945 GB, free: 27.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.5467, allocations: 7.359 kB / 0.5945 GB, free: 27.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5467, allocations: 1.469 kB / 0.5945 GB, free: 27.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5467, allocations: 7.406 kB / 0.5945 GB, free: 27.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004589/0.5513, allocations: 2.605 MB / 0.5971 GB, free: 25.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.5513, allocations: 5.484 kB / 0.5971 GB, free: 25.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.5517, allocations: 73.12 kB / 0.5971 GB, free: 25.8 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.004556/0.5563, allocations: 1.261 MB / 0.5984 GB, free: 25.56 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-05/0.5564, allocations: 13.16 kB / 0.5984 GB, free: 25.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006384/0.557, allocations: 126.5 kB / 0.5985 GB, free: 25.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.557, allocations: 1.922 kB / 0.5985 GB, free: 25.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004786/0.5618, allocations: 2.225 MB / 0.6007 GB, free: 24.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.5621, allocations: 154.3 kB / 0.6008 GB, free: 24.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.289e-05/0.5622, allocations: 13.83 kB / 0.6008 GB, free: 24.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/0.5629, allocations: 79.81 kB / 0.6009 GB, free: 24.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/0.5632, allocations: 116.6 kB / 0.601 GB, free: 24.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.106e-05/0.5632, allocations: 18.81 kB / 0.601 GB, free: 24.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004287/0.5637, allocations: 354.8 kB / 0.6014 GB, free: 24.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5637, allocations: 0 / 0.6014 GB, free: 24.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007672/0.5645, allocations: 246.6 kB / 0.6016 GB, free: 24.25 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.0001929/0.5647, allocations: 114.5 kB / 0.6017 GB, free: 24.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004287/0.569, allocations: 1.755 MB / 0.6034 GB, free: 23.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.569, allocations: 3.156 kB / 0.6034 GB, free: 23.4 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:3399:9-3399: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:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:764:5-764:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]