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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 173.2 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 221.5 MB / 229.6 MB, free: 7.562 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.0008666/0.0008665, allocations: 85.86 kB / 280.4 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5249/0.5249, allocations: 78.12 MB / 409.4 MB, free: 6.484 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.641e-05/2.62e-05, allocations: 7.938 kB / 485.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1769, allocations: 69.35 MB / 0.5414 GB, free: 6.859 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4263/0.6033, allocations: 92.6 MB / 0.6319 GB, free: 7.012 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.6037, allocations: 75.95 kB / 0.6319 GB, free: 6.938 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03621/0.6399, allocations: 13.85 MB / 0.6455 GB, free: 9.148 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.426e-06/0.64, allocations: 3.984 kB / 0.6455 GB, free: 9.145 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.585e-05/0.64, allocations: 12 kB / 0.6455 GB, free: 9.133 MB / 458.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.002925/0.6429, allocations: 1.131 MB / 0.6466 GB, free: 7.957 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.643, allocations: 12.02 kB / 0.6466 GB, free: 7.945 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.6447, allocations: 298.7 kB / 0.6469 GB, free: 7.652 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006428/0.6453, allocations: 438.7 kB / 0.6473 GB, free: 7.184 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.6456, allocations: 190.8 kB / 0.6475 GB, free: 6.969 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.6457, allocations: 32 kB / 0.6475 GB, free: 6.938 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009444/0.6467, allocations: 0.5379 MB / 0.648 GB, free: 6.398 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008719/0.6475, allocations: 0.5159 MB / 0.6485 GB, free: 5.875 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.6476, allocations: 0 / 0.6485 GB, free: 5.875 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.91e-05/0.6476, allocations: 4 kB / 0.6485 GB, free: 5.871 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.6476, allocations: 12 kB / 0.6485 GB, free: 5.859 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003502/0.6511, allocations: 2.088 MB / 0.6506 GB, free: 3.707 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007996/0.6592, allocations: 2.548 MB / 0.6531 GB, free: 1.047 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/0.6598, allocations: 366.2 kB / 0.6534 GB, free: 0.6875 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.039e-05/0.6599, allocations: 12.77 kB / 0.6534 GB, free: 0.6758 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006616/0.6606, allocations: 420.5 kB / 0.6538 GB, free: 260 kB / 458.7 MB Notification: Performance of pre-optimization done (n=73): time 3.166e-06/0.6606, allocations: 0 / 0.6538 GB, free: 260 kB / 458.7 MB Notification: Performance of matching and sorting (n=73): time 0.004175/0.6648, allocations: 1.494 MB / 0.6553 GB, free: 14.74 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.6648, allocations: 64.17 kB / 0.6554 GB, free: 14.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005225/0.6654, allocations: 410.5 kB / 0.6557 GB, free: 14.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.6655, allocations: 29.7 kB / 0.6558 GB, free: 14.22 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/0.6657, allocations: 328.6 kB / 0.6561 GB, free: 13.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.666, allocations: 240.4 kB / 0.6563 GB, free: 13.66 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.666, allocations: 0 / 0.6563 GB, free: 13.66 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.6662, allocations: 382.8 kB / 0.6567 GB, free: 13.28 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004635/0.6667, allocations: 293.5 kB / 0.657 GB, free: 12.99 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005138/0.6672, allocations: 386.7 kB / 0.6573 GB, free: 12.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.6677, allocations: 322.8 kB / 0.6576 GB, free: 12.28 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.6677, allocations: 0 / 0.6576 GB, free: 12.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006381/0.6741, allocations: 2.18 MB / 0.6598 GB, free: 10.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.6741, allocations: 9.703 kB / 0.6598 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.6741, allocations: 8 kB / 0.6598 GB, free: 10.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003553/0.6777, allocations: 0.9434 MB / 0.6607 GB, free: 9.113 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.6783, allocations: 111.8 kB / 0.6608 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/0.6847, allocations: 3.581 MB / 0.6643 GB, free: 5.309 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008325/0.6856, allocations: 103.4 kB / 0.6644 GB, free: 5.207 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.465e-05/0.6857, allocations: 24 kB / 0.6644 GB, free: 5.184 MB / 474.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 protected = true ) type: Real load.xp:VARIABLE(start = 0.0 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 () * 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.0002408/0.6859, allocations: 125.4 kB / 0.6646 GB, free: 5.055 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003983/0.6899, allocations: 1.502 MB / 0.666 GB, free: 3.535 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.6901, allocations: 75.06 kB / 0.6661 GB, free: 3.461 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.6948, allocations: 1.734 MB / 0.6678 GB, free: 1.711 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.6948, allocations: 4 kB / 0.6678 GB, free: 1.707 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.6948, allocations: 10.02 kB / 0.6678 GB, free: 1.699 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.6948, allocations: 7.969 kB / 0.6678 GB, free: 1.691 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/0.6983, allocations: 2.09 MB / 0.6698 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.6983, allocations: 0 / 0.6698 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/0.6987, allocations: 75.89 kB / 0.6699 GB, free: 15.45 MB / 490.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.003718/0.7024, allocations: 1.01 MB / 0.6709 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.113e-05/0.7025, allocations: 0 / 0.6709 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006175/0.7032, allocations: 128.8 kB / 0.671 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.7032, allocations: 0 / 0.671 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002903/0.7061, allocations: 1.645 MB / 0.6726 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.7063, allocations: 156.1 kB / 0.6728 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.7064, allocations: 7.938 kB / 0.6728 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/0.7071, allocations: 63.94 kB / 0.6728 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002697/0.7074, allocations: 124.5 kB / 0.673 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.364e-05/0.7074, allocations: 26.58 kB / 0.673 GB, free: 12.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003621/0.7078, allocations: 314.9 kB / 0.6733 GB, free: 11.94 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7078, allocations: 4 kB / 0.6733 GB, free: 11.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007043/0.7085, allocations: 216.7 kB / 0.6735 GB, free: 11.72 MB / 490.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) * 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.003212/0.7117, allocations: 2.212 MB / 0.6757 GB, free: 9.473 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.7149, allocations: 1.416 MB / 0.677 GB, free: 8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.7149, allocations: 4 kB / 0.6771 GB, free: 7.996 MB / 490.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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3197:9-3197:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {28:8}, {22:7}, {26:5}, {24:3}, {31:66}, {30:33}, {15:29}, {16:67}, {7:20}, {9:21}}, {10, 14, 5, 12, 6, 8, 19, 18, 11, 13, 25, 27, 29, 21, 20, 17:35, 11, 53, 10, 52, 46, 47, 30, 40, 41, 43, 42, 45, 13, 12, 44} Size: 16 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]