Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.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/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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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) 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(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.001124/0.001124, allocations: 108.3 kB / 16.92 MB, free: 5.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.318/1.318, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1874/0.1874, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 66.14 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09749, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009317/0.1068, allocations: 7.57 MB / 464.5 MB, free: 368 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004571/0.1115, allocations: 2.329 MB / 466.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007536/0.1123, allocations: 23.88 kB / 466.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002405/0.1147, allocations: 0.8532 MB / 467.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.116, allocations: 0.5091 MB / 468.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.1174, allocations: 443 kB / 468.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001651/0.1191, allocations: 1.321 MB / 470 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.1201, allocations: 0.6855 MB / 470.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.1212, allocations: 0.5641 MB / 471.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.1224, allocations: 0.6891 MB / 471.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000203/0.1226, allocations: 80 kB / 472 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005957/0.1232, allocations: 271.6 kB / 472.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005033/0.1237, allocations: 0.5104 MB / 472.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000721/0.1244, allocations: 0.5365 MB / 473.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.1258, allocations: 1.308 MB / 474.6 MB, free: 6.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1258, allocations: 4 kB / 474.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1259, allocations: 0 / 474.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.181e-05/0.1259, allocations: 4 kB / 474.6 MB, free: 6.211 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002595/0.1285, allocations: 1.331 MB / 476 MB, free: 4.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1286, allocations: 11.89 kB / 476 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.1287, allocations: 143.7 kB / 476.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/0.1298, allocations: 171.5 kB / 476.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.131, allocations: 0.7115 MB / 477 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.184e-05/0.131, allocations: 62.38 kB / 477.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002136/0.1313, allocations: 103.9 kB / 477.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.133, allocations: 1.216 MB / 478.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.133, allocations: 11.84 kB / 478.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.615e-05/0.1331, allocations: 36 kB / 478.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002755/0.1334, allocations: 65.95 kB / 478.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.135, allocations: 1.015 MB / 479.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005745/0.1408, allocations: 4.768 MB / 484.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.1418, allocations: 0.6725 MB / 484.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.1425, allocations: 459.8 kB / 485.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.653e-05/0.1425, allocations: 4.562 kB / 485.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007133/0.1432, allocations: 0.5042 MB / 485.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.745e-06/0.1433, allocations: 0 / 485.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004512/0.1478, allocations: 2.78 MB / 488.7 MB, free: 7.645 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.53e-05/0.1479, allocations: 174.8 kB / 488.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006838/0.1486, allocations: 0.5938 MB / 489.5 MB, free: 6.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/0.1487, allocations: 41.7 kB / 489.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.149, allocations: 475 kB / 490 MB, free: 6.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002214/0.1492, allocations: 260.4 kB / 490.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002553/0.1495, allocations: 178.4 kB / 490.4 MB, free: 5.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1497, allocations: 386.8 kB / 490.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005941/0.1503, allocations: 381.8 kB / 491.1 MB, free: 5.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000757/0.151, allocations: 0.6232 MB / 491.8 MB, free: 4.375 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006853/0.1579, allocations: 3.465 MB / 495.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.1579, allocations: 7.938 kB / 495.2 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002167/0.1601, allocations: 1.332 MB / 496.6 MB, free: 15.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.1601, allocations: 33.7 kB / 496.6 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.1602, allocations: 8 kB / 496.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006181/0.1608, allocations: 259 kB / 496.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.162, allocations: 267.5 kB / 497.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005365/0.1674, allocations: 6.077 MB / 0.4914 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000604/0.168, allocations: 35.98 kB / 0.4914 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.77e-05/0.1681, allocations: 43.98 kB / 0.4915 GB, free: 8.227 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005429/0.1686, allocations: 371.2 kB / 0.4918 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.1688, allocations: 83 kB / 0.4919 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.1708, allocations: 1.141 MB / 0.493 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/0.1708, allocations: 8 kB / 0.493 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.1709, allocations: 7.984 kB / 0.493 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.1709, allocations: 0 / 0.493 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003471/0.1744, allocations: 2.246 MB / 0.4952 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.1744, allocations: 7.984 kB / 0.4952 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009832/0.1754, allocations: 179.8 kB / 0.4954 GB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006943/0.1761, allocations: 262.3 kB / 0.4957 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.1762, allocations: 23.92 kB / 0.4957 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005182/0.1813, allocations: 6.019 MB / 0.5016 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1814, allocations: 4.031 kB / 0.5016 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.1839, allocations: 1.641 MB / 0.5032 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.1841, allocations: 144.2 kB / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.1842, allocations: 32.05 kB / 0.5033 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.1847, allocations: 19.98 kB / 0.5034 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.1848, allocations: 60.36 kB / 0.5034 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.183e-05/0.1849, allocations: 27.98 kB / 0.5034 GB, free: 11.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000473/0.1854, allocations: 415 kB / 0.5038 GB, free: 10.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1854, allocations: 0 / 0.5038 GB, free: 10.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00108/0.1865, allocations: 276.1 kB / 0.5041 GB, free: 10.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002873/0.1893, allocations: 2.221 MB / 0.5063 GB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.1919, allocations: 1.567 MB / 0.5078 GB, free: 6.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.1919, allocations: 4 kB / 0.5078 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.1933, allocations: 0.9132 MB / 0.5087 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.1944, allocations: 187 kB / 0.5089 GB, free: 5.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2108/0.4052, allocations: 8.389 MB / 0.5171 GB, free: 67.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008433/0.4061, allocations: 1.108 MB / 0.5181 GB, free: 67.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007904/0.4069, allocations: 215.8 kB / 0.5184 GB, free: 67.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004943/0.4074, allocations: 339.7 kB / 0.5187 GB, free: 67.17 MB / 398.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4074, allocations: 1.156 kB / 0.5187 GB, free: 67.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06974/0.4772, allocations: 18.59 MB / 0.5368 GB, free: 61.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.996/10.47, allocations: 4 kB / 0.5368 GB, free: 61.67 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches