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.001259/0.001259, allocations: 173.3 kB / 15.77 MB, free: 6.328 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.383/1.383, allocations: 223.3 MB / 239.8 MB, free: 1.73 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.0008132/0.0008132, allocations: 101.4 kB / 290.9 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4524/0.4524, allocations: 78.62 MB / 420.7 MB, free: 44.18 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004349, allocations: 16 kB / 0.4888 GB, free: 2.918 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3401, allocations: 69.35 MB / 0.5565 GB, free: 38.86 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.00375/0.3439, allocations: 3.986 MB / 0.5604 GB, free: 38.55 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.3461, allocations: 1.205 MB / 0.5616 GB, free: 38.16 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002381/0.3464, allocations: 6.219 kB / 0.5616 GB, free: 38.16 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003172/0.3467, allocations: 111.4 kB / 0.5617 GB, free: 38.11 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004569/0.3472, allocations: 201.2 kB / 0.5619 GB, free: 37.99 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.3482, allocations: 493.1 kB / 0.5624 GB, free: 37.73 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006386/0.3489, allocations: 0.7277 MB / 0.5631 GB, free: 37.36 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002974/0.3492, allocations: 168.2 kB / 0.5632 GB, free: 37.27 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.3495, allocations: 289.5 kB / 0.5635 GB, free: 37.14 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.3499, allocations: 363.5 kB / 0.5638 GB, free: 36.98 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 8.11e-05/0.35, allocations: 33.56 kB / 0.5639 GB, free: 36.98 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.3503, allocations: 99.17 kB / 0.564 GB, free: 36.95 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3504, allocations: 126.8 kB / 0.5641 GB, free: 36.88 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.3505, allocations: 155 kB / 0.5642 GB, free: 36.78 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007071/0.3512, allocations: 0.6706 MB / 0.5649 GB, free: 36.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3512, allocations: 0 / 0.5649 GB, free: 36.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3512, allocations: 1.062 kB / 0.5649 GB, free: 36.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.3513, allocations: 4 kB / 0.5649 GB, free: 36.56 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.004183/0.3555, allocations: 1.457 MB / 0.5663 GB, free: 35.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3555, allocations: 9.688 kB / 0.5663 GB, free: 35.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002672/0.3582, allocations: 424.8 kB / 0.5667 GB, free: 35.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006279/0.3588, allocations: 480.8 kB / 0.5672 GB, free: 35.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.3591, allocations: 205.8 kB / 0.5674 GB, free: 35.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.3592, allocations: 58.27 kB / 0.5675 GB, free: 35.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.3606, allocations: 0.7249 MB / 0.5682 GB, free: 34.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3606, allocations: 3.938 kB / 0.5682 GB, free: 34.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.744e-05/0.3607, allocations: 25.8 kB / 0.5682 GB, free: 34.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3607, allocations: 11.69 kB / 0.5682 GB, free: 34.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.362, allocations: 0.7179 MB / 0.5689 GB, free: 34.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.3653, allocations: 2.179 MB / 0.571 GB, free: 33.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008054/0.3734, allocations: 2.744 MB / 0.5737 GB, free: 32.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009058/0.3743, allocations: 0.5191 MB / 0.5742 GB, free: 32.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-05/0.3744, allocations: 6.438 kB / 0.5742 GB, free: 32.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001036/0.3754, allocations: 0.5593 MB / 0.5748 GB, free: 32.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 2.956e-06/0.3754, allocations: 0 / 0.5748 GB, free: 32.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=73): time 0.007301/0.3827, allocations: 2.838 MB / 0.5775 GB, free: 31.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.3828, allocations: 58.06 kB / 0.5776 GB, free: 31.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004941/0.3833, allocations: 0.5074 MB / 0.5781 GB, free: 30.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.3834, allocations: 40.14 kB / 0.5781 GB, free: 30.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.3835, allocations: 330.9 kB / 0.5784 GB, free: 30.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.3837, allocations: 241.8 kB / 0.5787 GB, free: 30.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.355e-05/0.3837, allocations: 15.06 kB / 0.5787 GB, free: 30.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.307e-05/0.3838, allocations: 386.3 kB / 0.5791 GB, free: 29.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008292/0.3847, allocations: 444.7 kB / 0.5795 GB, free: 29.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008563/0.3855, allocations: 0.5254 MB / 0.58 GB, free: 29.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008612/0.3864, allocations: 475.4 kB / 0.5804 GB, free: 29.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3864, allocations: 6.812 kB / 0.5805 GB, free: 29.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007399/0.3938, allocations: 2.628 MB / 0.583 GB, free: 28.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3939, allocations: 6.125 kB / 0.583 GB, free: 28.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3939, allocations: 3.531 kB / 0.583 GB, free: 28.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004129/0.398, allocations: 1.195 MB / 0.5842 GB, free: 28.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/0.3985, allocations: 111.6 kB / 0.5843 GB, free: 28.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008369/0.4069, allocations: 4.461 MB / 0.5887 GB, free: 26.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007871/0.4077, allocations: 125.6 kB / 0.5888 GB, free: 25.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.538e-05/0.4078, allocations: 28.89 kB / 0.5888 GB, free: 25.96 MB / 426.7 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.0003282/0.4081, allocations: 203.4 kB / 0.589 GB, free: 25.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.4082, allocations: 79.08 kB / 0.5891 GB, free: 25.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005135/0.4134, allocations: 1.947 MB / 0.591 GB, free: 25.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.4134, allocations: 7.219 kB / 0.591 GB, free: 25.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.4134, allocations: 1.312 kB / 0.591 GB, free: 25.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4134, allocations: 3.281 kB / 0.591 GB, free: 25.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004481/0.4179, allocations: 2.608 MB / 0.5935 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4179, allocations: 4 kB / 0.5935 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.4183, allocations: 73.83 kB / 0.5936 GB, free: 23.92 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.00438/0.4227, allocations: 1.247 MB / 0.5948 GB, free: 23.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.094e-05/0.4228, allocations: 14.53 kB / 0.5948 GB, free: 23.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00059/0.4234, allocations: 137.2 kB / 0.595 GB, free: 23.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.4234, allocations: 7.922 kB / 0.595 GB, free: 23.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004451/0.4278, allocations: 2.208 MB / 0.5971 GB, free: 22.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.428, allocations: 159.9 kB / 0.5973 GB, free: 22.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.448e-05/0.4281, allocations: 15.53 kB / 0.5973 GB, free: 22.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.4288, allocations: 80.48 kB / 0.5974 GB, free: 22.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/0.429, allocations: 123.3 kB / 0.5975 GB, free: 22.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-05/0.4291, allocations: 16.41 kB / 0.5975 GB, free: 22.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003681/0.4295, allocations: 348.1 kB / 0.5978 GB, free: 22.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4295, allocations: 1.219 kB / 0.5978 GB, free: 22.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007298/0.4302, allocations: 238.5 kB / 0.5981 GB, free: 22.36 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 (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.0001744/0.4304, allocations: 121 kB / 0.5982 GB, free: 22.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.4344, allocations: 1.743 MB / 0.5999 GB, free: 21.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4344, allocations: 0 / 0.5999 GB, free: 21.5 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/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]