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.0757/0.0757, allocations: 12.19 MB / 27.97 MB, free: 1.406 MB / 19.64 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 111.5 kB / 31.47 MB, free: 4.695 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.268/1.268, allocations: 205.1 MB / 240 MB, free: 11.64 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.001295/0.001295, allocations: 198.1 kB / 290.1 MB, free: 15.97 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4403/0.4403, allocations: 78.51 MB / 418.6 MB, free: 47.08 MB / 334.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.002542/0.002542, allocations: 131.8 kB / 498.9 MB, free: 4.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1427, allocations: 68.04 MB / 0.5536 GB, free: 492 kB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2059/0.3486, allocations: 4.672 MB / 0.5582 GB, free: 39.79 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.3508, allocations: 1.238 MB / 0.5594 GB, free: 39.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002598/0.3512, allocations: 12.34 kB / 0.5594 GB, free: 39.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.3515, allocations: 118.4 kB / 0.5595 GB, free: 39.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004333/0.352, allocations: 187.2 kB / 0.5597 GB, free: 39.1 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3531, allocations: 0.5416 MB / 0.5602 GB, free: 38.94 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000698/0.3538, allocations: 0.7576 MB / 0.561 GB, free: 38.74 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.3541, allocations: 183.1 kB / 0.5611 GB, free: 38.69 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.3544, allocations: 310.2 kB / 0.5614 GB, free: 38.6 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003946/0.3548, allocations: 397.5 kB / 0.5618 GB, free: 38.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.467e-05/0.3549, allocations: 42.06 kB / 0.5618 GB, free: 38.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002755/0.3551, allocations: 104.1 kB / 0.5619 GB, free: 38.47 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.3553, allocations: 148.7 kB / 0.5621 GB, free: 38.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002795/0.3555, allocations: 367.9 kB / 0.5624 GB, free: 38.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006641/0.3562, allocations: 0.6792 MB / 0.5631 GB, free: 37.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3562, allocations: 0.7031 kB / 0.5631 GB, free: 37.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.3562, allocations: 5.469 kB / 0.5631 GB, free: 37.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.3563, allocations: 0 / 0.5631 GB, free: 37.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.004145/0.3604, allocations: 1.563 MB / 0.5646 GB, free: 37.13 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3605, allocations: 14.78 kB / 0.5646 GB, free: 37.13 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002507/0.363, allocations: 435.3 kB / 0.5651 GB, free: 37.03 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006059/0.3636, allocations: 0.4926 MB / 0.5655 GB, free: 36.64 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.3638, allocations: 201 kB / 0.5657 GB, free: 36.46 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.3639, allocations: 55.31 kB / 0.5658 GB, free: 36.44 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.3652, allocations: 0.6897 MB / 0.5665 GB, free: 36.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3653, allocations: 4 kB / 0.5665 GB, free: 36.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.3653, allocations: 21.84 kB / 0.5665 GB, free: 36.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.3654, allocations: 16.31 kB / 0.5665 GB, free: 36.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.3667, allocations: 0.6732 MB / 0.5672 GB, free: 35.94 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003163/0.3699, allocations: 2.143 MB / 0.5693 GB, free: 34.74 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006899/0.3768, allocations: 2.274 MB / 0.5715 GB, free: 33.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008154/0.3776, allocations: 478.8 kB / 0.5719 GB, free: 33.62 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.617e-05/0.3777, allocations: 9.25 kB / 0.5719 GB, free: 33.62 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000958/0.3787, allocations: 0.5248 MB / 0.5725 GB, free: 33.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.657e-06/0.3787, allocations: 4 kB / 0.5725 GB, free: 33.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006231/0.3849, allocations: 2.458 MB / 0.5749 GB, free: 32.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.385, allocations: 63.97 kB / 0.5749 GB, free: 32.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.3854, allocations: 0.5115 MB / 0.5754 GB, free: 32.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.528e-05/0.3855, allocations: 45.97 kB / 0.5755 GB, free: 32.13 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.3856, allocations: 319.2 kB / 0.5758 GB, free: 31.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3858, allocations: 253.5 kB / 0.576 GB, free: 31.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.386, allocations: 120.7 kB / 0.5761 GB, free: 31.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.556e-05/0.3861, allocations: 382.1 kB / 0.5765 GB, free: 31.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007188/0.3868, allocations: 400.1 kB / 0.5769 GB, free: 31.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007549/0.3876, allocations: 0.497 MB / 0.5774 GB, free: 30.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007867/0.3954, allocations: 2.517 MB / 0.5798 GB, free: 30.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3955, allocations: 3.125 kB / 0.5798 GB, free: 30.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006269/0.4017, allocations: 2.213 MB / 0.582 GB, free: 29.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.4018, allocations: 11.28 kB / 0.582 GB, free: 29.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.4018, allocations: 6.344 kB / 0.582 GB, free: 29.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003532/0.4053, allocations: 0.9942 MB / 0.583 GB, free: 29.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.4058, allocations: 107.3 kB / 0.5831 GB, free: 29.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007675/0.4135, allocations: 4.127 MB / 0.5871 GB, free: 26.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000774/0.4143, allocations: 102.4 kB / 0.5872 GB, free: 26.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-05/0.4143, allocations: 25.97 kB / 0.5872 GB, free: 26.86 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.0003543/0.4147, allocations: 207 kB / 0.5874 GB, free: 26.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.4148, allocations: 79.53 kB / 0.5875 GB, free: 26.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004241/0.4191, allocations: 1.689 MB / 0.5891 GB, free: 26.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.4191, allocations: 9.562 kB / 0.5892 GB, free: 26.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4191, allocations: 0 / 0.5892 GB, free: 26.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.4191, allocations: 7.719 kB / 0.5892 GB, free: 26.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/0.4234, allocations: 2.443 MB / 0.5915 GB, free: 24.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.4234, allocations: 7.938 kB / 0.5916 GB, free: 24.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.4238, allocations: 70.89 kB / 0.5916 GB, free: 24.85 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.00398/0.4277, allocations: 1.06 MB / 0.5927 GB, free: 24.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.98e-05/0.4278, allocations: 23.08 kB / 0.5927 GB, free: 24.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005403/0.4284, allocations: 99.39 kB / 0.5928 GB, free: 24.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4284, allocations: 3.938 kB / 0.5928 GB, free: 24.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004097/0.4325, allocations: 2.005 MB / 0.5947 GB, free: 23.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.4327, allocations: 150.8 kB / 0.5949 GB, free: 23.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.4328, allocations: 13.72 kB / 0.5949 GB, free: 23.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006084/0.4334, allocations: 58.66 kB / 0.5949 GB, free: 23.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002959/0.4337, allocations: 118 kB / 0.5951 GB, free: 23.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.518e-05/0.4338, allocations: 18.62 kB / 0.5951 GB, free: 23.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003469/0.4341, allocations: 361 kB / 0.5954 GB, free: 23.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.4341, allocations: 0 / 0.5954 GB, free: 23.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007079/0.4348, allocations: 245.5 kB / 0.5957 GB, free: 23.36 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.0001795/0.435, allocations: 118.4 kB / 0.5958 GB, free: 23.26 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003618/0.4386, allocations: 1.573 MB / 0.5973 GB, free: 22.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4387, allocations: 0 / 0.5973 GB, free: 22.54 MB / 430.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:3446:9-3446: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:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]