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/Complex 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 181 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 222.9 MB / 239.7 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009938/0.0009939, allocations: 103.5 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4027/0.4027, allocations: 78.52 MB / 418.5 MB, free: 8.516 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 67.89 kB / 497.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2584, allocations: 68.16 MB / 0.5524 GB, free: 19.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003678/0.2622, allocations: 4.633 MB / 0.5569 GB, free: 15.27 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.2637, allocations: 1.282 MB / 0.5582 GB, free: 13.98 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.2639, allocations: 8 kB / 0.5582 GB, free: 13.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.2642, allocations: 107.3 kB / 0.5583 GB, free: 13.87 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.2646, allocations: 190.5 kB / 0.5585 GB, free: 13.68 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000882/0.2655, allocations: 0.5412 MB / 0.559 GB, free: 13.14 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.2659, allocations: 0.782 MB / 0.5598 GB, free: 12.36 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.2661, allocations: 182.2 kB / 0.56 GB, free: 12.17 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.2663, allocations: 306.5 kB / 0.5602 GB, free: 11.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003676/0.2667, allocations: 402 kB / 0.5606 GB, free: 11.47 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.384e-05/0.2668, allocations: 40 kB / 0.5607 GB, free: 11.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.2671, allocations: 104 kB / 0.5608 GB, free: 11.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.733e-05/0.2672, allocations: 151.2 kB / 0.5609 GB, free: 11.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002531/0.2674, allocations: 369.7 kB / 0.5613 GB, free: 10.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006009/0.268, allocations: 0.8817 MB / 0.5621 GB, free: 9.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.268, allocations: 0 / 0.5621 GB, free: 9.938 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.2681, allocations: 3.938 kB / 0.5621 GB, free: 9.934 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2681, allocations: 0 / 0.5621 GB, free: 9.934 MB / 378.7 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.003691/0.2718, allocations: 1.563 MB / 0.5637 GB, free: 8.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.2718, allocations: 8.031 kB / 0.5637 GB, free: 8.312 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002197/0.274, allocations: 431.1 kB / 0.5641 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004865/0.2745, allocations: 498.2 kB / 0.5645 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.2747, allocations: 201.8 kB / 0.5647 GB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/0.2748, allocations: 52 kB / 0.5648 GB, free: 7.086 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.2759, allocations: 0.6897 MB / 0.5655 GB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2759, allocations: 0 / 0.5655 GB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.457e-05/0.276, allocations: 20 kB / 0.5655 GB, free: 6.367 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.276, allocations: 19.94 kB / 0.5655 GB, free: 6.348 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.2771, allocations: 0.6727 MB / 0.5662 GB, free: 5.676 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002804/0.2799, allocations: 2.148 MB / 0.5683 GB, free: 3.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006987/0.2869, allocations: 2.277 MB / 0.5705 GB, free: 1.059 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008314/0.2878, allocations: 483.1 kB / 0.5709 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.854e-05/0.2879, allocations: 12.59 kB / 0.571 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009375/0.2888, allocations: 0.5235 MB / 0.5715 GB, free: 40 kB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 3.607e-06/0.2888, allocations: 0 / 0.5715 GB, free: 40 kB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.006899/0.2957, allocations: 2.463 MB / 0.5739 GB, free: 13.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.2958, allocations: 64.06 kB / 0.5739 GB, free: 13.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005608/0.2964, allocations: 0.4993 MB / 0.5744 GB, free: 12.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.2964, allocations: 41.69 kB / 0.5745 GB, free: 12.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.2966, allocations: 328.5 kB / 0.5748 GB, free: 12.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.2969, allocations: 256.3 kB / 0.575 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.2971, allocations: 114.7 kB / 0.5751 GB, free: 12.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2972, allocations: 386.8 kB / 0.5755 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008255/0.2981, allocations: 397.8 kB / 0.5759 GB, free: 11.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000918/0.299, allocations: 0.4984 MB / 0.5764 GB, free: 10.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008586/0.3076, allocations: 2.518 MB / 0.5788 GB, free: 8.328 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3076, allocations: 0 / 0.5788 GB, free: 8.328 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006857/0.3145, allocations: 2.216 MB / 0.581 GB, free: 6.094 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3145, allocations: 8 kB / 0.581 GB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3145, allocations: 0 / 0.581 GB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003773/0.3183, allocations: 1.003 MB / 0.582 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000508/0.3188, allocations: 99.89 kB / 0.5821 GB, free: 4.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00841/0.3273, allocations: 4.124 MB / 0.5861 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000723/0.328, allocations: 99.31 kB / 0.5862 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.696e-05/0.3281, allocations: 31.98 kB / 0.5862 GB, free: 0.5977 MB / 394.7 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.0003134/0.3284, allocations: 205.7 kB / 0.5864 GB, free: 396 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.3285, allocations: 71.16 kB / 0.5865 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004585/0.3331, allocations: 1.698 MB / 0.5881 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3331, allocations: 8 kB / 0.5881 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3331, allocations: 0 / 0.5881 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3331, allocations: 4.172 kB / 0.5882 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004265/0.3374, allocations: 2.441 MB / 0.5905 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.3374, allocations: 11.88 kB / 0.5905 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.3378, allocations: 71.89 kB / 0.5906 GB, free: 11.97 MB / 410.7 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.004008/0.3418, allocations: 1.069 MB / 0.5917 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.548e-05/0.3419, allocations: 16 kB / 0.5917 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005466/0.3425, allocations: 100.7 kB / 0.5918 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3425, allocations: 0 / 0.5918 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03343/0.3759, allocations: 14.05 MB / 0.6055 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.3762, allocations: 156 kB / 0.6056 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.3763, allocations: 12 kB / 0.6057 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000663/0.377, allocations: 59.94 kB / 0.6057 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.3773, allocations: 120.4 kB / 0.6058 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.681e-05/0.3774, allocations: 16 kB / 0.6058 GB, free: 12.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003675/0.3778, allocations: 354.8 kB / 0.6062 GB, free: 11.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3778, allocations: 0 / 0.6062 GB, free: 11.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000931/0.3787, allocations: 339.6 kB / 0.6065 GB, free: 11.37 MB / 426.7 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.0002093/0.379, allocations: 126.5 kB / 0.6066 GB, free: 11.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003809/0.3828, allocations: 1.572 MB / 0.6082 GB, free: 9.613 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3828, allocations: 0 / 0.6082 GB, free: 9.613 MB / 426.7 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@2/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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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]