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.0917/0.09171, allocations: 12.21 MB / 27.33 MB, free: 1.441 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.001149/0.001149, allocations: 119.4 kB / 30.84 MB, free: 4.711 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.479/1.479, allocations: 205.1 MB / 239.3 MB, free: 10.96 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.001451/0.001451, allocations: 200.4 kB / 289.5 MB, free: 15.88 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4345/0.4345, allocations: 78.5 MB / 418 MB, free: 31.8 MB / 318.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.002748/0.002748, allocations: 140.7 kB / 498.3 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3639, allocations: 68.03 MB / 0.5531 GB, free: 37.66 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004437/0.3684, allocations: 4.695 MB / 0.5577 GB, free: 34.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.3706, allocations: 1.228 MB / 0.5589 GB, free: 33.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002203/0.3708, allocations: 9 kB / 0.5589 GB, free: 33.36 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003605/0.3712, allocations: 118.2 kB / 0.559 GB, free: 33.31 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003961/0.3716, allocations: 190.1 kB / 0.5592 GB, free: 33.17 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.3727, allocations: 0.5388 MB / 0.5597 GB, free: 32.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005021/0.3732, allocations: 0.767 MB / 0.5604 GB, free: 32.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.3734, allocations: 176.3 kB / 0.5606 GB, free: 32.36 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.3737, allocations: 315.6 kB / 0.5609 GB, free: 32.21 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/0.374, allocations: 391.9 kB / 0.5613 GB, free: 32.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.008e-05/0.3741, allocations: 43.81 kB / 0.5613 GB, free: 32.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.3743, allocations: 108.6 kB / 0.5614 GB, free: 32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.892e-05/0.3744, allocations: 147.7 kB / 0.5616 GB, free: 31.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002388/0.3747, allocations: 369.4 kB / 0.5619 GB, free: 31.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005883/0.3753, allocations: 0.8772 MB / 0.5628 GB, free: 31.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3753, allocations: 0 / 0.5628 GB, free: 31.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.3753, allocations: 0 / 0.5628 GB, free: 31.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.3753, allocations: 2.844 kB / 0.5628 GB, free: 31.27 MB / 414.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.003979/0.3793, allocations: 1.567 MB / 0.5643 GB, free: 30.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.3794, allocations: 12.36 kB / 0.5643 GB, free: 30.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.3795, allocations: 102.7 kB / 0.5644 GB, free: 30.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002408/0.3819, allocations: 429.8 kB / 0.5648 GB, free: 30.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005617/0.3825, allocations: 0.4951 MB / 0.5653 GB, free: 29.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.3827, allocations: 197.5 kB / 0.5655 GB, free: 29.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.901e-05/0.3828, allocations: 49.31 kB / 0.5655 GB, free: 29.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.384, allocations: 0.694 MB / 0.5662 GB, free: 29.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3841, allocations: 0 / 0.5662 GB, free: 29.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.394e-05/0.3841, allocations: 27.84 kB / 0.5663 GB, free: 29.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.3842, allocations: 17.41 kB / 0.5663 GB, free: 29.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.3854, allocations: 0.6761 MB / 0.5669 GB, free: 29.17 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003111/0.3885, allocations: 2.134 MB / 0.569 GB, free: 27.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007027/0.3956, allocations: 2.27 MB / 0.5712 GB, free: 27.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008506/0.3964, allocations: 485.5 kB / 0.5717 GB, free: 26.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.872e-05/0.3965, allocations: 20.22 kB / 0.5717 GB, free: 26.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001103/0.3977, allocations: 0.5193 MB / 0.5722 GB, free: 26.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 4.799e-06/0.3977, allocations: 3.938 kB / 0.5722 GB, free: 26.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=73): time 0.006687/0.4044, allocations: 2.455 MB / 0.5746 GB, free: 25.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.4044, allocations: 60.77 kB / 0.5747 GB, free: 25.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007563/0.4052, allocations: 0.5121 MB / 0.5752 GB, free: 25.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.645e-05/0.4053, allocations: 41.23 kB / 0.5752 GB, free: 25.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.4055, allocations: 324.3 kB / 0.5755 GB, free: 25.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.4058, allocations: 251.1 kB / 0.5758 GB, free: 24.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.406, allocations: 127.2 kB / 0.5759 GB, free: 24.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4061, allocations: 383.2 kB / 0.5763 GB, free: 24.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008811/0.407, allocations: 406 kB / 0.5766 GB, free: 24.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009299/0.408, allocations: 0.4921 MB / 0.5771 GB, free: 24.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00916/0.4171, allocations: 2.511 MB / 0.5796 GB, free: 23.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.4172, allocations: 5.344 kB / 0.5796 GB, free: 23.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007526/0.4247, allocations: 2.203 MB / 0.5817 GB, free: 22.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.4248, allocations: 6 kB / 0.5817 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.4249, allocations: 6.312 kB / 0.5817 GB, free: 22.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004092/0.429, allocations: 0.997 MB / 0.5827 GB, free: 22.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006622/0.4296, allocations: 103.9 kB / 0.5828 GB, free: 22.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009761/0.4394, allocations: 4.136 MB / 0.5869 GB, free: 20.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009951/0.4405, allocations: 98.33 kB / 0.5869 GB, free: 20.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.4406, allocations: 23.22 kB / 0.587 GB, free: 20.08 MB / 414.1 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.0005341/0.4412, allocations: 220.6 kB / 0.5872 GB, free: 19.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002849/0.4415, allocations: 75.77 kB / 0.5873 GB, free: 19.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004869/0.4464, allocations: 1.698 MB / 0.5889 GB, free: 18.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.4464, allocations: 7.688 kB / 0.5889 GB, free: 18.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.4464, allocations: 5.188 kB / 0.5889 GB, free: 18.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4464, allocations: 3.984 kB / 0.5889 GB, free: 18.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004801/0.4512, allocations: 2.437 MB / 0.5913 GB, free: 17.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.4512, allocations: 0 / 0.5913 GB, free: 17.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004007/0.4517, allocations: 65.31 kB / 0.5914 GB, free: 17.32 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.00405/0.4557, allocations: 1.08 MB / 0.5924 GB, free: 16.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/0.4558, allocations: 12.16 kB / 0.5924 GB, free: 16.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005543/0.4564, allocations: 101.4 kB / 0.5925 GB, free: 16.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4564, allocations: 0 / 0.5925 GB, free: 16.76 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004502/0.4609, allocations: 2.011 MB / 0.5945 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.4612, allocations: 147.9 kB / 0.5946 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.4614, allocations: 12.41 kB / 0.5946 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007251/0.4621, allocations: 61.83 kB / 0.5947 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003153/0.4624, allocations: 118.3 kB / 0.5948 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.046e-05/0.4625, allocations: 17.66 kB / 0.5948 GB, free: 15.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004198/0.4629, allocations: 362.4 kB / 0.5952 GB, free: 15.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4629, allocations: 0 / 0.5952 GB, free: 15.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008772/0.4638, allocations: 235.7 kB / 0.5954 GB, free: 14.84 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 (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.004021/0.4678, allocations: 2.571 MB / 0.5979 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003609/0.4715, allocations: 1.569 MB / 0.5995 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4715, allocations: 0 / 0.5995 GB, free: 10.61 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: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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]