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.08766/0.08766, allocations: 12.2 MB / 27.81 MB, free: 1.059 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.0008113/0.0008114, allocations: 107.5 kB / 31.32 MB, free: 4.633 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.517/1.517, allocations: 205.4 MB / 240.1 MB, free: 13.62 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.001666/0.001666, allocations: 177.5 kB / 291.3 MB, free: 11.64 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4741/0.4741, allocations: 78.53 MB / 420.8 MB, free: 11.65 MB / 302.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.000853/0.0008533, allocations: 35.98 kB / 0.4901 GB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3476, allocations: 69.22 MB / 0.5577 GB, free: 21.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003365/0.351, allocations: 4.037 MB / 0.5616 GB, free: 17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3528, allocations: 1.178 MB / 0.5628 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.353, allocations: 12 kB / 0.5628 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002704/0.3533, allocations: 99.27 kB / 0.5629 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003589/0.3536, allocations: 206.4 kB / 0.5631 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008975/0.3546, allocations: 482.4 kB / 0.5635 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005038/0.3551, allocations: 0.7315 MB / 0.5643 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.3553, allocations: 161.2 kB / 0.5644 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.3555, allocations: 286.7 kB / 0.5647 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.3559, allocations: 362.3 kB / 0.565 GB, free: 13.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.3559, allocations: 36 kB / 0.5651 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.3562, allocations: 99.91 kB / 0.5652 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.647e-05/0.3563, allocations: 127.4 kB / 0.5653 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.3564, allocations: 153.3 kB / 0.5654 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.3568, allocations: 0.6725 MB / 0.5661 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3569, allocations: 0 / 0.5661 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3569, allocations: 0 / 0.5661 GB, free: 12.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.3569, allocations: 0 / 0.5661 GB, free: 12.41 MB / 382.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.003206/0.3601, allocations: 1.451 MB / 0.5675 GB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3601, allocations: 11.98 kB / 0.5675 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002159/0.3623, allocations: 430.6 kB / 0.5679 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.3628, allocations: 482.6 kB / 0.5684 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.363, allocations: 213.8 kB / 0.5686 GB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.02e-05/0.3631, allocations: 52 kB / 0.5686 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3643, allocations: 0.7209 MB / 0.5693 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3643, allocations: 0 / 0.5693 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.213e-05/0.3643, allocations: 27.98 kB / 0.5694 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.3644, allocations: 12 kB / 0.5694 GB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.3655, allocations: 0.7156 MB / 0.5701 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/0.3684, allocations: 2.183 MB / 0.5722 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006354/0.3747, allocations: 2.747 MB / 0.5749 GB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007776/0.3755, allocations: 0.5141 MB / 0.5754 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.832e-05/0.3756, allocations: 12.66 kB / 0.5754 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009504/0.3766, allocations: 0.5626 MB / 0.576 GB, free: 1.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 3.527e-06/0.3766, allocations: 0 / 0.576 GB, free: 1.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.006295/0.3829, allocations: 2.826 MB / 0.5787 GB, free: 15.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.383, allocations: 68 kB / 0.5788 GB, free: 14.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000586/0.3835, allocations: 0.5147 MB / 0.5793 GB, free: 14.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.7e-05/0.3836, allocations: 37.7 kB / 0.5793 GB, free: 14.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.3839, allocations: 324.6 kB / 0.5796 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.3841, allocations: 248.4 kB / 0.5799 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-05/0.3842, allocations: 12 kB / 0.5799 GB, free: 13.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3843, allocations: 382.7 kB / 0.5802 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008406/0.3852, allocations: 445.8 kB / 0.5807 GB, free: 13.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008937/0.3861, allocations: 0.5376 MB / 0.5812 GB, free: 12.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008593/0.3869, allocations: 472.7 kB / 0.5816 GB, free: 11.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3869, allocations: 0 / 0.5816 GB, free: 11.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0067/0.3936, allocations: 2.619 MB / 0.5842 GB, free: 9.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.3937, allocations: 8 kB / 0.5842 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3937, allocations: 0 / 0.5842 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003708/0.3974, allocations: 1.198 MB / 0.5854 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005171/0.398, allocations: 115.8 kB / 0.5855 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008225/0.4062, allocations: 4.461 MB / 0.5898 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008023/0.407, allocations: 123.3 kB / 0.59 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.4071, allocations: 28 kB / 0.59 GB, free: 3.293 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp: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 ($whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.disable,$PRE.ultc.zeroCrossing.u_pos,ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,ultc.zeroCrossing.enable) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003715/0.4075, allocations: 201.9 kB / 0.5902 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.967e-05/0.4076, allocations: 75.06 kB / 0.5903 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004421/0.412, allocations: 1.956 MB / 0.5922 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.412, allocations: 8 kB / 0.5922 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.4121, allocations: 4 kB / 0.5922 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.4121, allocations: 3.984 kB / 0.5922 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004207/0.4163, allocations: 2.605 MB / 0.5947 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4163, allocations: 0 / 0.5947 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.4167, allocations: 79.89 kB / 0.5948 GB, free: 14.24 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.003747/0.4204, allocations: 1.245 MB / 0.596 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-05/0.4205, allocations: 19.98 kB / 0.596 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004843/0.421, allocations: 132.7 kB / 0.5962 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.421, allocations: 0 / 0.5962 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004169/0.4252, allocations: 2.21 MB / 0.5983 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.4254, allocations: 148.2 kB / 0.5985 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.4255, allocations: 16 kB / 0.5985 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.426, allocations: 75.94 kB / 0.5986 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002848/0.4263, allocations: 124.4 kB / 0.5987 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/0.4264, allocations: 27.92 kB / 0.5987 GB, free: 10.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003724/0.4268, allocations: 350.8 kB / 0.599 GB, free: 9.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4268, allocations: 0 / 0.599 GB, free: 9.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007512/0.4275, allocations: 239.7 kB / 0.5993 GB, free: 9.621 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001931/0.4277, allocations: 123.2 kB / 0.5994 GB, free: 9.492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003588/0.4313, allocations: 1.74 MB / 0.6011 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4313, allocations: 0 / 0.6011 GB, free: 7.691 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:3387:9-3387: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:1487:5-1487:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]