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/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/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/package.mo): time 0.08296/0.08296, allocations: 12.2 MB / 28.08 MB, free: 1.348 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.001132/0.001132, allocations: 119.4 kB / 31.59 MB, free: 4.574 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.476/1.476, allocations: 205.1 MB / 240.1 MB, free: 10.94 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.001545/0.001544, allocations: 184.5 kB / 290.2 MB, free: 15.86 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4613/0.4613, allocations: 78.51 MB / 418.8 MB, free: 31.76 MB / 318.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.002649/0.002649, allocations: 135.8 kB / 499.1 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.4014, allocations: 68.03 MB / 0.5538 GB, free: 37.68 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004842/0.4063, allocations: 4.704 MB / 0.5584 GB, free: 34.26 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.4085, allocations: 1.229 MB / 0.5596 GB, free: 33.37 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.4088, allocations: 8.406 kB / 0.5596 GB, free: 33.37 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003863/0.4091, allocations: 103.7 kB / 0.5597 GB, free: 33.33 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.4096, allocations: 194.6 kB / 0.5599 GB, free: 33.19 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.4107, allocations: 0.5363 MB / 0.5604 GB, free: 32.87 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005931/0.4113, allocations: 0.8006 MB / 0.5612 GB, free: 32.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.4116, allocations: 204.3 kB / 0.5614 GB, free: 32.36 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.4119, allocations: 330 kB / 0.5617 GB, free: 32.19 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003892/0.4122, allocations: 416 kB / 0.5621 GB, free: 31.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.121e-05/0.4123, allocations: 62.09 kB / 0.5622 GB, free: 31.98 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002736/0.4126, allocations: 130.5 kB / 0.5623 GB, free: 31.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.4127, allocations: 168.1 kB / 0.5624 GB, free: 31.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000257/0.413, allocations: 400.5 kB / 0.5628 GB, free: 31.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005732/0.4136, allocations: 0.6914 MB / 0.5635 GB, free: 31.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.4136, allocations: 0 / 0.5635 GB, free: 31.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4136, allocations: 2.875 kB / 0.5635 GB, free: 31.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.4136, allocations: 0 / 0.5635 GB, free: 31.3 MB / 414.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.003995/0.4176, allocations: 1.568 MB / 0.565 GB, free: 30.47 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4177, allocations: 12.8 kB / 0.565 GB, free: 30.47 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002429/0.4201, allocations: 431.3 kB / 0.5655 GB, free: 30.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.4207, allocations: 0.4987 MB / 0.5659 GB, free: 29.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.4209, allocations: 194.8 kB / 0.5661 GB, free: 29.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.6e-05/0.421, allocations: 58.02 kB / 0.5662 GB, free: 29.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.4223, allocations: 0.6851 MB / 0.5669 GB, free: 29.53 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.4223, allocations: 3.938 kB / 0.5669 GB, free: 29.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.349e-05/0.4224, allocations: 26.58 kB / 0.5669 GB, free: 29.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.4224, allocations: 14.38 kB / 0.5669 GB, free: 29.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.4237, allocations: 0.6713 MB / 0.5676 GB, free: 29.28 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00339/0.4271, allocations: 2.141 MB / 0.5696 GB, free: 28.08 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007467/0.4346, allocations: 2.274 MB / 0.5719 GB, free: 27.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008656/0.4354, allocations: 484 kB / 0.5723 GB, free: 26.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.561e-05/0.4355, allocations: 12.02 kB / 0.5723 GB, free: 26.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/0.4367, allocations: 0.5242 MB / 0.5728 GB, free: 26.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 3.046e-06/0.4367, allocations: 0 / 0.5728 GB, free: 26.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=73): time 0.007202/0.4439, allocations: 2.454 MB / 0.5752 GB, free: 25.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.444, allocations: 59.88 kB / 0.5753 GB, free: 25.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006701/0.4446, allocations: 0.5108 MB / 0.5758 GB, free: 25.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.893e-05/0.4447, allocations: 43.27 kB / 0.5758 GB, free: 25.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.4449, allocations: 320 kB / 0.5761 GB, free: 25.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.4452, allocations: 251.2 kB / 0.5764 GB, free: 25.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.4454, allocations: 122.9 kB / 0.5765 GB, free: 24.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4455, allocations: 382.7 kB / 0.5769 GB, free: 24.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000877/0.4464, allocations: 402.5 kB / 0.5773 GB, free: 24.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009562/0.4474, allocations: 0.4915 MB / 0.5777 GB, free: 24.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009299/0.4567, allocations: 2.532 MB / 0.5802 GB, free: 23.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4568, allocations: 3.938 kB / 0.5802 GB, free: 23.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007307/0.4641, allocations: 2.207 MB / 0.5824 GB, free: 22.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.4641, allocations: 6.531 kB / 0.5824 GB, free: 22.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.4641, allocations: 1.812 kB / 0.5824 GB, free: 22.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004142/0.4683, allocations: 1.004 MB / 0.5834 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006/0.4689, allocations: 112.9 kB / 0.5835 GB, free: 22.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009601/0.4785, allocations: 4.506 MB / 0.5879 GB, free: 19.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009657/0.4795, allocations: 102.9 kB / 0.588 GB, free: 19.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.4796, allocations: 22.47 kB / 0.588 GB, free: 19.94 MB / 414.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.0004228/0.4801, allocations: 211.4 kB / 0.5882 GB, free: 19.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.4803, allocations: 79.22 kB / 0.5883 GB, free: 19.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004788/0.4851, allocations: 1.694 MB / 0.5899 GB, free: 18.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.4851, allocations: 7.281 kB / 0.5899 GB, free: 18.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4851, allocations: 3.938 kB / 0.5899 GB, free: 18.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.4851, allocations: 9.234 kB / 0.5899 GB, free: 18.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.4897, allocations: 2.44 MB / 0.5923 GB, free: 17.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.4897, allocations: 192 / 0.5923 GB, free: 17.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003953/0.4901, allocations: 69.88 kB / 0.5924 GB, free: 17.17 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.4943, allocations: 1.069 MB / 0.5934 GB, free: 16.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-05/0.4944, allocations: 19.27 kB / 0.5934 GB, free: 16.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005863/0.495, allocations: 101 kB / 0.5935 GB, free: 16.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.495, allocations: 1.156 kB / 0.5935 GB, free: 16.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004545/0.4996, allocations: 2.012 MB / 0.5955 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.4999, allocations: 152.1 kB / 0.5956 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.5, allocations: 15.94 kB / 0.5957 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006901/0.5007, allocations: 51.94 kB / 0.5957 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/0.501, allocations: 120.5 kB / 0.5958 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/0.5011, allocations: 23.98 kB / 0.5959 GB, free: 15.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003719/0.5015, allocations: 354.8 kB / 0.5962 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5015, allocations: 0 / 0.5962 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008331/0.5023, allocations: 239.7 kB / 0.5964 GB, free: 14.54 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.0002041/0.5025, allocations: 119.1 kB / 0.5965 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003917/0.5064, allocations: 1.612 MB / 0.5981 GB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5065, allocations: 0 / 0.5981 GB, free: 12.74 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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1543:5-1543:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/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]