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.001029/0.001029, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.227/1.227, allocations: 222.9 MB / 239.6 MB, free: 4.781 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.001194/0.001194, allocations: 196.3 kB / 289.9 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4132/0.4132, allocations: 78.52 MB / 418.6 MB, free: 3.328 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 71.88 kB / 497.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1154, allocations: 68.18 MB / 0.5525 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.1888/0.3043, allocations: 4.638 MB / 0.557 GB, free: 37.12 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.3062, allocations: 1.261 MB / 0.5583 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002734/0.3065, allocations: 8.625 kB / 0.5583 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.3068, allocations: 121.5 kB / 0.5584 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004489/0.3073, allocations: 191.7 kB / 0.5586 GB, free: 36.69 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.3083, allocations: 0.5267 MB / 0.5591 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006678/0.309, allocations: 0.7985 MB / 0.5599 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.3093, allocations: 204.4 kB / 0.5601 GB, free: 36.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.3096, allocations: 327.3 kB / 0.5604 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003704/0.31, allocations: 419.9 kB / 0.5608 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-05/0.31, allocations: 62.94 kB / 0.5608 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00027/0.3103, allocations: 126.1 kB / 0.561 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.928e-05/0.3104, allocations: 171.8 kB / 0.5611 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002517/0.3107, allocations: 387.5 kB / 0.5615 GB, free: 36.13 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.3112, allocations: 0.6965 MB / 0.5622 GB, free: 36.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3112, allocations: 0.5 kB / 0.5622 GB, free: 36.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3112, allocations: 3.406 kB / 0.5622 GB, free: 36.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.3113, allocations: 0 / 0.5622 GB, free: 36.02 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.003637/0.3149, allocations: 1.568 MB / 0.5637 GB, free: 35.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.3149, allocations: 9.688 kB / 0.5637 GB, free: 35.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002341/0.3173, allocations: 427 kB / 0.5641 GB, free: 35.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.3178, allocations: 0.4944 MB / 0.5646 GB, free: 35.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.318, allocations: 198.8 kB / 0.5648 GB, free: 34.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.253e-05/0.3181, allocations: 56.62 kB / 0.5648 GB, free: 34.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.3193, allocations: 0.6861 MB / 0.5655 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.3193, allocations: 0 / 0.5655 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.3194, allocations: 27.67 kB / 0.5655 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3194, allocations: 17.78 kB / 0.5656 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.3206, allocations: 0.6788 MB / 0.5662 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002877/0.3235, allocations: 2.144 MB / 0.5683 GB, free: 34.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006684/0.3302, allocations: 2.274 MB / 0.5705 GB, free: 33.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/0.3309, allocations: 485.2 kB / 0.571 GB, free: 33.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.598e-05/0.331, allocations: 8.656 kB / 0.571 GB, free: 33.67 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.3322, allocations: 0.5259 MB / 0.5715 GB, free: 33.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.456e-06/0.3322, allocations: 1.078 kB / 0.5715 GB, free: 33.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006069/0.3383, allocations: 2.456 MB / 0.5739 GB, free: 33.18 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.3383, allocations: 60.78 kB / 0.574 GB, free: 33.11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004049/0.3387, allocations: 0.511 MB / 0.5745 GB, free: 33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/0.3388, allocations: 40.8 kB / 0.5745 GB, free: 32.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.339, allocations: 325.2 kB / 0.5748 GB, free: 32.81 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.3391, allocations: 251.5 kB / 0.5751 GB, free: 32.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/0.3393, allocations: 118.1 kB / 0.5752 GB, free: 32.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.023e-05/0.3394, allocations: 384.4 kB / 0.5755 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007264/0.3401, allocations: 412 kB / 0.5759 GB, free: 32.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007543/0.3409, allocations: 0.4888 MB / 0.5764 GB, free: 32.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007965/0.3489, allocations: 2.52 MB / 0.5789 GB, free: 31.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3489, allocations: 3.375 kB / 0.5789 GB, free: 31.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006652/0.3555, allocations: 2.213 MB / 0.581 GB, free: 30.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3556, allocations: 5.5 kB / 0.581 GB, free: 30.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.3556, allocations: 2.812 kB / 0.581 GB, free: 30.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003631/0.3592, allocations: 0.9977 MB / 0.582 GB, free: 30.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.3598, allocations: 114.5 kB / 0.5821 GB, free: 30.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008259/0.3681, allocations: 4.499 MB / 0.5865 GB, free: 28.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007846/0.3689, allocations: 103.1 kB / 0.5866 GB, free: 28.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/0.369, allocations: 29 kB / 0.5867 GB, free: 28.05 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.0003226/0.3693, allocations: 200.2 kB / 0.5868 GB, free: 27.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3694, allocations: 71.06 kB / 0.5869 GB, free: 27.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004248/0.3737, allocations: 1.697 MB / 0.5886 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3737, allocations: 10.58 kB / 0.5886 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3737, allocations: 5.156 kB / 0.5886 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.3737, allocations: 7.078 kB / 0.5886 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004045/0.3778, allocations: 2.435 MB / 0.591 GB, free: 26.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.3778, allocations: 0 / 0.591 GB, free: 26.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.3782, allocations: 75.91 kB / 0.591 GB, free: 26.09 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.003956/0.3822, allocations: 1.068 MB / 0.5921 GB, free: 25.87 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.3823, allocations: 14.14 kB / 0.5921 GB, free: 25.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005383/0.3829, allocations: 105.4 kB / 0.5922 GB, free: 25.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3829, allocations: 1.125 kB / 0.5922 GB, free: 25.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004122/0.387, allocations: 2.011 MB / 0.5942 GB, free: 24.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.3873, allocations: 148.9 kB / 0.5943 GB, free: 24.85 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.3874, allocations: 18.19 kB / 0.5943 GB, free: 24.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006249/0.388, allocations: 62.88 kB / 0.5944 GB, free: 24.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.3883, allocations: 120.5 kB / 0.5945 GB, free: 24.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.3884, allocations: 17.86 kB / 0.5945 GB, free: 24.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003628/0.3888, allocations: 353.1 kB / 0.5948 GB, free: 24.63 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3888, allocations: 0 / 0.5948 GB, free: 24.63 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007036/0.3895, allocations: 236.8 kB / 0.5951 GB, free: 24.59 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.00017/0.3897, allocations: 121.3 kB / 0.5952 GB, free: 24.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004001/0.3937, allocations: 1.614 MB / 0.5968 GB, free: 23.76 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3937, allocations: 1.25 kB / 0.5968 GB, free: 23.76 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: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]