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.00131/0.00131, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.292/1.292, allocations: 222.9 MB / 239 MB, free: 4.73 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.001421/0.001421, allocations: 184.5 kB / 289.2 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4488/0.4488, allocations: 78.53 MB / 417.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001345, allocations: 76.14 kB / 497 MB, free: 6.625 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1273, allocations: 68.17 MB / 0.552 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2102/0.3375, allocations: 4.639 MB / 0.5565 GB, free: 37.26 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.3398, allocations: 1.267 MB / 0.5577 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002913/0.3401, allocations: 10.38 kB / 0.5577 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.3405, allocations: 115.9 kB / 0.5578 GB, free: 36.87 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004833/0.341, allocations: 191.3 kB / 0.558 GB, free: 36.83 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.3421, allocations: 0.5282 MB / 0.5585 GB, free: 36.71 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006426/0.3428, allocations: 0.7959 MB / 0.5593 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.343, allocations: 197.2 kB / 0.5595 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.3433, allocations: 339.4 kB / 0.5598 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003866/0.3437, allocations: 409.5 kB / 0.5602 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.415e-05/0.3438, allocations: 66.06 kB / 0.5603 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002772/0.3441, allocations: 129.3 kB / 0.5604 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.3442, allocations: 167.7 kB / 0.5606 GB, free: 36.4 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002431/0.3444, allocations: 392.1 kB / 0.5609 GB, free: 36.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006724/0.3451, allocations: 0.9048 MB / 0.5618 GB, free: 36.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3451, allocations: 0 / 0.5618 GB, free: 36.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3451, allocations: 0 / 0.5618 GB, free: 36.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3451, allocations: 1.125 kB / 0.5618 GB, free: 36.07 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.003824/0.349, allocations: 1.571 MB / 0.5634 GB, free: 35.4 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.349, allocations: 15.84 kB / 0.5634 GB, free: 35.4 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.825e-05/0.3491, allocations: 97.73 kB / 0.5635 GB, free: 35.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002333/0.3515, allocations: 431.2 kB / 0.5639 GB, free: 35.3 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.3521, allocations: 498.8 kB / 0.5644 GB, free: 35.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.3522, allocations: 201.6 kB / 0.5646 GB, free: 34.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/0.3523, allocations: 54.03 kB / 0.5646 GB, free: 34.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.3536, allocations: 0.6879 MB / 0.5653 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3536, allocations: 1.688 kB / 0.5653 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.293e-05/0.3537, allocations: 28.14 kB / 0.5653 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3537, allocations: 16.12 kB / 0.5653 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.3549, allocations: 0.6689 MB / 0.566 GB, free: 34.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003067/0.358, allocations: 2.155 MB / 0.5681 GB, free: 34.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00681/0.3648, allocations: 2.269 MB / 0.5703 GB, free: 33.69 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009665/0.3658, allocations: 485.2 kB / 0.5708 GB, free: 33.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.009e-05/0.3659, allocations: 8.531 kB / 0.5708 GB, free: 33.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.3669, allocations: 0.5223 MB / 0.5713 GB, free: 33.62 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.815e-06/0.367, allocations: 0 / 0.5713 GB, free: 33.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006368/0.3733, allocations: 2.458 MB / 0.5737 GB, free: 33.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.3734, allocations: 60.47 kB / 0.5737 GB, free: 33.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000526/0.3739, allocations: 0.508 MB / 0.5742 GB, free: 33.01 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.242e-05/0.374, allocations: 40.67 kB / 0.5743 GB, free: 32.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.3742, allocations: 327.6 kB / 0.5746 GB, free: 32.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.3744, allocations: 252.6 kB / 0.5748 GB, free: 32.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.3747, allocations: 119.6 kB / 0.5749 GB, free: 32.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.3748, allocations: 383.9 kB / 0.5753 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007766/0.3756, allocations: 402.2 kB / 0.5757 GB, free: 32.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008141/0.3764, allocations: 0.4919 MB / 0.5762 GB, free: 32.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00838/0.3848, allocations: 2.521 MB / 0.5786 GB, free: 31.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.3848, allocations: 4.594 kB / 0.5786 GB, free: 31.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006906/0.3917, allocations: 2.216 MB / 0.5808 GB, free: 30.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.3918, allocations: 5.469 kB / 0.5808 GB, free: 30.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.3918, allocations: 1.312 kB / 0.5808 GB, free: 30.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003776/0.3956, allocations: 1.002 MB / 0.5818 GB, free: 30.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.3962, allocations: 111.3 kB / 0.5819 GB, free: 30.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009003/0.4052, allocations: 4.504 MB / 0.5863 GB, free: 28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008418/0.4061, allocations: 103.2 kB / 0.5864 GB, free: 27.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4062, allocations: 21.41 kB / 0.5864 GB, free: 27.95 MB / 430.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.0004341/0.4067, allocations: 204.6 kB / 0.5866 GB, free: 27.78 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001859/0.4069, allocations: 76.23 kB / 0.5867 GB, free: 27.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004471/0.4114, allocations: 1.691 MB / 0.5883 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.4114, allocations: 6.875 kB / 0.5883 GB, free: 27.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.4114, allocations: 6.594 kB / 0.5883 GB, free: 27.19 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.4114, allocations: 3.234 kB / 0.5883 GB, free: 27.19 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00438/0.4158, allocations: 2.444 MB / 0.5907 GB, free: 25.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.4158, allocations: 0 / 0.5907 GB, free: 25.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.4162, allocations: 74.09 kB / 0.5908 GB, free: 25.98 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.004168/0.4204, allocations: 1.071 MB / 0.5918 GB, free: 25.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.91e-05/0.4205, allocations: 14.62 kB / 0.5919 GB, free: 25.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005874/0.4211, allocations: 105.4 kB / 0.592 GB, free: 25.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4211, allocations: 0 / 0.592 GB, free: 25.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004612/0.4258, allocations: 2.011 MB / 0.5939 GB, free: 24.88 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002535/0.426, allocations: 147.2 kB / 0.5941 GB, free: 24.74 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/0.4262, allocations: 19.69 kB / 0.5941 GB, free: 24.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000729/0.4269, allocations: 57.47 kB / 0.5941 GB, free: 24.71 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003805/0.4273, allocations: 120.4 kB / 0.5942 GB, free: 24.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.017e-05/0.4274, allocations: 19.75 kB / 0.5943 GB, free: 24.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005424/0.428, allocations: 354.8 kB / 0.5946 GB, free: 24.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.428, allocations: 0 / 0.5946 GB, free: 24.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008943/0.4289, allocations: 238 kB / 0.5948 GB, free: 24.48 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 (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.004778/0.4337, allocations: 2.575 MB / 0.5973 GB, free: 23.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004294/0.438, allocations: 1.61 MB / 0.5989 GB, free: 22.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.438, allocations: 1.125 kB / 0.5989 GB, free: 22.36 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:3470:9-3470: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:1543:5-1543:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:798:5-798:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]