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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.08573/0.08573, allocations: 12.2 MB / 27.17 MB, free: 1.473 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.0007764/0.0007764, allocations: 104.5 kB / 30.68 MB, free: 4.852 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.325/1.325, allocations: 205.4 MB / 239.5 MB, free: 11.55 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.001021/0.001021, allocations: 191.5 kB / 290.6 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4753/0.4753, allocations: 78.53 MB / 420.1 MB, free: 48.63 MB / 334.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.001272/0.001272, allocations: 28 kB / 0.4895 GB, free: 2.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.413, allocations: 69.22 MB / 0.5571 GB, free: 43.08 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004183/0.4173, allocations: 4.037 MB / 0.5611 GB, free: 42.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.4199, allocations: 1.171 MB / 0.5622 GB, free: 41.79 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003543/0.4203, allocations: 6.062 kB / 0.5622 GB, free: 41.79 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003552/0.4206, allocations: 106 kB / 0.5623 GB, free: 41.75 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005647/0.4212, allocations: 207.8 kB / 0.5625 GB, free: 41.64 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.4224, allocations: 495 kB / 0.563 GB, free: 41.39 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009387/0.4234, allocations: 0.7284 MB / 0.5637 GB, free: 41.02 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003248/0.4237, allocations: 164.5 kB / 0.5639 GB, free: 40.95 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.4241, allocations: 289.3 kB / 0.5642 GB, free: 40.81 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004957/0.4246, allocations: 368.2 kB / 0.5645 GB, free: 40.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.438e-05/0.4247, allocations: 33.75 kB / 0.5645 GB, free: 40.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00035/0.425, allocations: 89.53 kB / 0.5646 GB, free: 40.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.4252, allocations: 132.5 kB / 0.5648 GB, free: 40.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.4254, allocations: 153.5 kB / 0.5649 GB, free: 40.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008253/0.4262, allocations: 0.6643 MB / 0.5655 GB, free: 40.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.4262, allocations: 0.9375 kB / 0.5655 GB, free: 40.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.4262, allocations: 0 / 0.5655 GB, free: 40.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.4262, allocations: 3.938 kB / 0.5656 GB, free: 40.23 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.003978/0.4302, allocations: 1.453 MB / 0.567 GB, free: 39.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.4303, allocations: 13.2 kB / 0.567 GB, free: 39.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.4305, allocations: 101.5 kB / 0.5671 GB, free: 39.42 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/0.433, allocations: 425.7 kB / 0.5675 GB, free: 39.34 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007792/0.4338, allocations: 482.6 kB / 0.5679 GB, free: 38.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/0.434, allocations: 205.6 kB / 0.5681 GB, free: 38.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.4342, allocations: 59.31 kB / 0.5682 GB, free: 38.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.4357, allocations: 0.7286 MB / 0.5689 GB, free: 38.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.4357, allocations: 0 / 0.5689 GB, free: 38.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.4358, allocations: 26.09 kB / 0.5689 GB, free: 38.49 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.4358, allocations: 12.66 kB / 0.5689 GB, free: 38.49 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.4372, allocations: 0.713 MB / 0.5696 GB, free: 38.26 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003505/0.4407, allocations: 2.187 MB / 0.5718 GB, free: 37.04 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007003/0.4477, allocations: 2.747 MB / 0.5745 GB, free: 36.04 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.4488, allocations: 0.5131 MB / 0.575 GB, free: 35.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.379e-05/0.4489, allocations: 12.61 kB / 0.575 GB, free: 35.85 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009947/0.4499, allocations: 0.5583 MB / 0.5755 GB, free: 35.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.695e-06/0.4499, allocations: 0 / 0.5755 GB, free: 35.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006483/0.4564, allocations: 2.839 MB / 0.5783 GB, free: 34.67 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.4565, allocations: 60.97 kB / 0.5783 GB, free: 34.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.4571, allocations: 0.5027 MB / 0.5788 GB, free: 34.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-05/0.4572, allocations: 40.77 kB / 0.5789 GB, free: 34.33 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.4574, allocations: 321.9 kB / 0.5792 GB, free: 34.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.4576, allocations: 259.4 kB / 0.5794 GB, free: 33.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.4576, allocations: 10.97 kB / 0.5794 GB, free: 33.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.4577, allocations: 384 kB / 0.5798 GB, free: 33.51 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007532/0.4585, allocations: 448.4 kB / 0.5802 GB, free: 33.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008212/0.4593, allocations: 0.5346 MB / 0.5808 GB, free: 33.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008084/0.4601, allocations: 466 kB / 0.5812 GB, free: 32.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4601, allocations: 4 kB / 0.5812 GB, free: 32.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006411/0.4665, allocations: 2.624 MB / 0.5838 GB, free: 32.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.4666, allocations: 7.969 kB / 0.5838 GB, free: 32.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.4666, allocations: 6.734 kB / 0.5838 GB, free: 32.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00357/0.4702, allocations: 1.186 MB / 0.5849 GB, free: 32.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.4708, allocations: 115.2 kB / 0.5851 GB, free: 32.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007544/0.4783, allocations: 4.465 MB / 0.5894 GB, free: 29.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008748/0.4792, allocations: 124.6 kB / 0.5895 GB, free: 29.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7e-05/0.4793, allocations: 26.25 kB / 0.5896 GB, free: 29.56 MB / 430.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.0003841/0.4797, allocations: 212.2 kB / 0.5898 GB, free: 29.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.4798, allocations: 71.5 kB / 0.5898 GB, free: 29.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.4845, allocations: 1.956 MB / 0.5917 GB, free: 28.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.4846, allocations: 7.625 kB / 0.5917 GB, free: 28.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.4846, allocations: 5.328 kB / 0.5917 GB, free: 28.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.4846, allocations: 3.375 kB / 0.5918 GB, free: 28.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/0.489, allocations: 2.603 MB / 0.5943 GB, free: 27.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.4891, allocations: 1.281 kB / 0.5943 GB, free: 27.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/0.4895, allocations: 76.73 kB / 0.5944 GB, free: 27.5 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.003938/0.4934, allocations: 1.255 MB / 0.5956 GB, free: 27.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/0.4935, allocations: 15.14 kB / 0.5956 GB, free: 27.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005313/0.494, allocations: 135.7 kB / 0.5957 GB, free: 27.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.494, allocations: 0 / 0.5957 GB, free: 27.23 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004446/0.4985, allocations: 2.212 MB / 0.5979 GB, free: 26.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.4988, allocations: 148.6 kB / 0.598 GB, free: 26.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.4989, allocations: 13.12 kB / 0.5981 GB, free: 26.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/0.4995, allocations: 80.2 kB / 0.5981 GB, free: 26.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/0.4998, allocations: 124.6 kB / 0.5982 GB, free: 26.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.4999, allocations: 18.02 kB / 0.5983 GB, free: 26.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004791/0.5004, allocations: 350.5 kB / 0.5986 GB, free: 26 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5004, allocations: 3.938 kB / 0.5986 GB, free: 26 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008447/0.5012, allocations: 237.1 kB / 0.5988 GB, free: 25.96 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 (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.004681/0.5059, allocations: 2.776 MB / 0.6015 GB, free: 24.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003981/0.5099, allocations: 1.742 MB / 0.6032 GB, free: 23.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.5099, allocations: 1.094 kB / 0.6032 GB, free: 23.79 MB / 430.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]