Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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 4.0.0+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 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001104, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.644/1.644, allocations: 223.3 MB / 239 MB, free: 5.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001502/0.001501, allocations: 188.3 kB / 290.3 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.584/0.584, allocations: 78.56 MB / 419.9 MB, free: 4.258 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004037/0.0004038, allocations: 8 kB / 499.9 MB, free: 6.27 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1802, allocations: 69.36 MB / 0.5559 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.3717/0.552, allocations: 3.991 MB / 0.5598 GB, free: 37.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.5552, allocations: 1.192 MB / 0.561 GB, free: 37.61 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.5556, allocations: 13.16 kB / 0.561 GB, free: 37.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.556, allocations: 106.8 kB / 0.5611 GB, free: 37.57 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005777/0.5565, allocations: 210.2 kB / 0.5613 GB, free: 37.48 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.5578, allocations: 474.7 kB / 0.5617 GB, free: 37.43 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008588/0.5587, allocations: 0.7364 MB / 0.5624 GB, free: 37.23 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003366/0.559, allocations: 161.8 kB / 0.5626 GB, free: 37.2 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003009/0.5593, allocations: 285 kB / 0.5629 GB, free: 37.12 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004885/0.5598, allocations: 367.7 kB / 0.5632 GB, free: 37.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.441e-05/0.5599, allocations: 36.03 kB / 0.5633 GB, free: 37.03 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.5602, allocations: 89.88 kB / 0.5633 GB, free: 37.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.5603, allocations: 133 kB / 0.5635 GB, free: 37 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.5605, allocations: 154.9 kB / 0.5636 GB, free: 36.94 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006589/0.5611, allocations: 0.6688 MB / 0.5643 GB, free: 36.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.5611, allocations: 0 / 0.5643 GB, free: 36.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.5612, allocations: 1.031 kB / 0.5643 GB, free: 36.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.5612, allocations: 0 / 0.5643 GB, free: 36.86 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.004052/0.5652, allocations: 1.456 MB / 0.5657 GB, free: 36.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.5653, allocations: 11.16 kB / 0.5657 GB, free: 36.24 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001545/0.5655, allocations: 104.5 kB / 0.5658 GB, free: 36.2 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002398/0.5679, allocations: 426.4 kB / 0.5662 GB, free: 36.15 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007314/0.5686, allocations: 484.6 kB / 0.5667 GB, free: 35.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/0.5689, allocations: 208.3 kB / 0.5669 GB, free: 35.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.569, allocations: 50.89 kB / 0.5669 GB, free: 35.72 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.5704, allocations: 0.7298 MB / 0.5676 GB, free: 35.67 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.5704, allocations: 7.719 kB / 0.5676 GB, free: 35.67 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.256e-05/0.5705, allocations: 26.12 kB / 0.5677 GB, free: 35.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.5706, allocations: 15.78 kB / 0.5677 GB, free: 35.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.5721, allocations: 0.7111 MB / 0.5684 GB, free: 35.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004004/0.5761, allocations: 2.179 MB / 0.5705 GB, free: 35.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007636/0.5838, allocations: 2.739 MB / 0.5732 GB, free: 34.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.5848, allocations: 0.5113 MB / 0.5737 GB, free: 34.47 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.5849, allocations: 6.422 kB / 0.5737 GB, free: 34.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.5862, allocations: 0.5634 MB / 0.5742 GB, free: 34.4 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 5.09e-06/0.5862, allocations: 0 / 0.5742 GB, free: 34.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.007441/0.5937, allocations: 2.836 MB / 0.577 GB, free: 33.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.5938, allocations: 58.06 kB / 0.5771 GB, free: 33.85 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006477/0.5944, allocations: 0.5026 MB / 0.5775 GB, free: 33.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.308e-05/0.5945, allocations: 49.84 kB / 0.5776 GB, free: 33.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.5948, allocations: 330.5 kB / 0.5779 GB, free: 33.31 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.595, allocations: 245.1 kB / 0.5781 GB, free: 33.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.595, allocations: 14.59 kB / 0.5782 GB, free: 33.11 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.5952, allocations: 381.9 kB / 0.5785 GB, free: 32.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008265/0.596, allocations: 447.3 kB / 0.5789 GB, free: 32.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009527/0.597, allocations: 0.5283 MB / 0.5795 GB, free: 32.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009451/0.5979, allocations: 481.5 kB / 0.5799 GB, free: 32.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.5979, allocations: 0 / 0.5799 GB, free: 32.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008093/0.606, allocations: 2.623 MB / 0.5825 GB, free: 31.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.6061, allocations: 5.344 kB / 0.5825 GB, free: 31.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.6061, allocations: 2.75 kB / 0.5825 GB, free: 31.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004202/0.6103, allocations: 1.193 MB / 0.5837 GB, free: 31.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006697/0.611, allocations: 116.6 kB / 0.5838 GB, free: 31.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009281/0.6203, allocations: 4.464 MB / 0.5881 GB, free: 28.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.6214, allocations: 123.4 kB / 0.5882 GB, free: 28.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/0.6215, allocations: 23 kB / 0.5883 GB, free: 28.83 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.0004518/0.622, allocations: 206.3 kB / 0.5885 GB, free: 28.65 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.6221, allocations: 78.31 kB / 0.5885 GB, free: 28.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004996/0.6271, allocations: 1.958 MB / 0.5905 GB, free: 28.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.6271, allocations: 7.875 kB / 0.5905 GB, free: 28.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.6271, allocations: 0 / 0.5905 GB, free: 28.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.6272, allocations: 5.578 kB / 0.5905 GB, free: 28.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005319/0.6325, allocations: 2.602 MB / 0.593 GB, free: 26.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.6325, allocations: 0 / 0.593 GB, free: 26.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003848/0.6329, allocations: 72.08 kB / 0.5931 GB, free: 26.8 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.004382/0.6373, allocations: 1.254 MB / 0.5943 GB, free: 26.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-05/0.6374, allocations: 13.16 kB / 0.5943 GB, free: 26.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005963/0.638, allocations: 135.4 kB / 0.5944 GB, free: 26.53 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.638, allocations: 0 / 0.5944 GB, free: 26.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005475/0.6435, allocations: 2.212 MB / 0.5966 GB, free: 25.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003362/0.6439, allocations: 156 kB / 0.5967 GB, free: 25.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.6441, allocations: 16.75 kB / 0.5968 GB, free: 25.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007298/0.6448, allocations: 81.78 kB / 0.5968 GB, free: 25.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003945/0.6452, allocations: 120.1 kB / 0.597 GB, free: 25.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.29e-05/0.6453, allocations: 18.69 kB / 0.597 GB, free: 25.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007695/0.6461, allocations: 350.7 kB / 0.5973 GB, free: 25.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6461, allocations: 0 / 0.5973 GB, free: 25.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001256/0.6474, allocations: 240.7 kB / 0.5975 GB, free: 25.25 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.005816/0.6532, allocations: 2.774 MB / 0.6002 GB, free: 23.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005087/0.6583, allocations: 1.743 MB / 0.602 GB, free: 23.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.6583, allocations: 0 / 0.602 GB, free: 23.09 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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]