Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_release_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_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.0009406/0.0009407, allocations: 180.2 kB / 15.45 MB, free: 6.227 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.229/1.229, allocations: 223.3 MB / 239.5 MB, free: 1.617 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007308/0.0007307, allocations: 99.17 kB / 290.7 MB, free: 13.8 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4443/0.4443, allocations: 78.61 MB / 420.4 MB, free: 44.11 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.000398, allocations: 12 kB / 0.4888 GB, free: 2.539 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3119, allocations: 69.34 MB / 0.5565 GB, free: 39.14 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003363/0.3153, allocations: 4.233 MB / 0.5606 GB, free: 37.68 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.3171, allocations: 1.255 MB / 0.5619 GB, free: 37.14 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/0.3174, allocations: 7.219 kB / 0.5619 GB, free: 37.14 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000282/0.3177, allocations: 115.6 kB / 0.562 GB, free: 37.1 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004584/0.3181, allocations: 187.1 kB / 0.5622 GB, free: 36.99 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.3191, allocations: 0.5361 MB / 0.5627 GB, free: 36.83 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006045/0.3198, allocations: 0.7648 MB / 0.5634 GB, free: 36.62 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.32, allocations: 173 kB / 0.5636 GB, free: 36.57 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/0.3203, allocations: 300.2 kB / 0.5639 GB, free: 36.48 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000383/0.3207, allocations: 385.6 kB / 0.5642 GB, free: 36.36 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 7.349e-05/0.3207, allocations: 33.81 kB / 0.5643 GB, free: 36.36 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002451/0.321, allocations: 93 kB / 0.5644 GB, free: 36.35 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.3211, allocations: 139.9 kB / 0.5645 GB, free: 36.3 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002961/0.3214, allocations: 380 kB / 0.5649 GB, free: 36.13 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008226/0.3222, allocations: 0.858 MB / 0.5657 GB, free: 35.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3222, allocations: 5 kB / 0.5657 GB, free: 35.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3223, allocations: 0 / 0.5657 GB, free: 35.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.435e-06/0.3223, allocations: 0 / 0.5657 GB, free: 35.91 MB / 426.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.003458/0.3257, allocations: 1.448 MB / 0.5671 GB, free: 35.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.158e-05/0.3258, allocations: 10 kB / 0.5671 GB, free: 35.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/0.328, allocations: 429.2 kB / 0.5675 GB, free: 35.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.3285, allocations: 0.496 MB / 0.568 GB, free: 34.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.3287, allocations: 204.9 kB / 0.5682 GB, free: 34.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.713e-05/0.3288, allocations: 60.19 kB / 0.5683 GB, free: 34.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.33, allocations: 0.7261 MB / 0.569 GB, free: 34.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3301, allocations: 1.188 kB / 0.569 GB, free: 34.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.965e-05/0.3301, allocations: 24.89 kB / 0.569 GB, free: 34.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.3301, allocations: 18.47 kB / 0.569 GB, free: 34.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.3314, allocations: 0.7284 MB / 0.5697 GB, free: 34.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00293/0.3343, allocations: 2.174 MB / 0.5719 GB, free: 32.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006641/0.3409, allocations: 2.757 MB / 0.5746 GB, free: 31.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008827/0.3418, allocations: 0.5205 MB / 0.5751 GB, free: 31.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.776e-05/0.3419, allocations: 8.656 kB / 0.5751 GB, free: 31.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009387/0.3429, allocations: 0.5627 MB / 0.5756 GB, free: 31.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 3.226e-06/0.3429, allocations: 0 / 0.5756 GB, free: 31.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=73): time 0.006272/0.3492, allocations: 2.841 MB / 0.5784 GB, free: 30.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.3492, allocations: 60.5 kB / 0.5785 GB, free: 30.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.3497, allocations: 0.5101 MB / 0.579 GB, free: 30.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.332e-05/0.3498, allocations: 43.45 kB / 0.579 GB, free: 30.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.3499, allocations: 323.9 kB / 0.5793 GB, free: 29.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.3501, allocations: 249.7 kB / 0.5795 GB, free: 29.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.212e-05/0.3502, allocations: 74.28 kB / 0.5796 GB, free: 29.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.405e-05/0.3503, allocations: 379.8 kB / 0.58 GB, free: 29.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007552/0.351, allocations: 444.5 kB / 0.5804 GB, free: 29.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007992/0.3518, allocations: 0.5339 MB / 0.5809 GB, free: 28.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007802/0.3597, allocations: 2.792 MB / 0.5836 GB, free: 28.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3597, allocations: 0 / 0.5836 GB, free: 28.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006483/0.3662, allocations: 2.639 MB / 0.5862 GB, free: 27.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3662, allocations: 7.281 kB / 0.5862 GB, free: 27.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3662, allocations: 5.719 kB / 0.5862 GB, free: 27.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003548/0.3698, allocations: 1.187 MB / 0.5874 GB, free: 27.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004517/0.3702, allocations: 104.4 kB / 0.5875 GB, free: 27.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008061/0.3783, allocations: 4.49 MB / 0.5919 GB, free: 24.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007185/0.379, allocations: 118.3 kB / 0.592 GB, free: 24.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/0.3791, allocations: 26.2 kB / 0.592 GB, free: 24.79 MB / 426.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.0003771/0.3795, allocations: 200.2 kB / 0.5922 GB, free: 24.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.3796, allocations: 75.28 kB / 0.5923 GB, free: 24.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004487/0.3841, allocations: 1.969 MB / 0.5942 GB, free: 23.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3841, allocations: 7.656 kB / 0.5942 GB, free: 23.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3842, allocations: 1 kB / 0.5942 GB, free: 23.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3842, allocations: 3.375 kB / 0.5942 GB, free: 23.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004187/0.3884, allocations: 2.601 MB / 0.5968 GB, free: 22.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3884, allocations: 9.281 kB / 0.5968 GB, free: 22.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.3887, allocations: 72.88 kB / 0.5968 GB, free: 22.75 MB / 426.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.003889/0.3926, allocations: 1.252 MB / 0.5981 GB, free: 22.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.3927, allocations: 11.28 kB / 0.5981 GB, free: 22.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005231/0.3932, allocations: 135.2 kB / 0.5982 GB, free: 22.47 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3933, allocations: 1.344 kB / 0.5982 GB, free: 22.47 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.3976, allocations: 2.219 MB / 0.6004 GB, free: 21.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.3979, allocations: 152.3 kB / 0.6005 GB, free: 21.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.398, allocations: 17.28 kB / 0.6005 GB, free: 21.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006238/0.3986, allocations: 80.45 kB / 0.6006 GB, free: 21.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/0.3989, allocations: 122 kB / 0.6007 GB, free: 21.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.798e-05/0.399, allocations: 16.91 kB / 0.6007 GB, free: 21.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004228/0.3994, allocations: 356.8 kB / 0.6011 GB, free: 21.24 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3994, allocations: 1.031 kB / 0.6011 GB, free: 21.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000779/0.4002, allocations: 240.2 kB / 0.6013 GB, free: 21.2 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.0001588/0.4004, allocations: 118.5 kB / 0.6014 GB, free: 21.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003833/0.4042, allocations: 1.742 MB / 0.6031 GB, free: 20.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4042, allocations: 0.5 kB / 0.6031 GB, free: 20.34 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1497:5-1497:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/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]