Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008964/0.0008964, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9292/0.9292, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2186/0.2186, allocations: 29.41 MB / 290.1 MB, free: 2.434 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.943e-05, allocations: 2.844 kB / 430.2 MB, free: 13.59 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004213/0.004243, allocations: 3.6 MB / 433.8 MB, free: 9.965 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.006342, allocations: 1.831 MB / 435.6 MB, free: 8.125 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.006537, allocations: 7.938 kB / 435.6 MB, free: 8.117 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006997/0.007236, allocations: 238.8 kB / 435.9 MB, free: 7.883 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006244/0.007861, allocations: 310.4 kB / 436.2 MB, free: 7.578 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.00829, allocations: 179.2 kB / 436.4 MB, free: 7.402 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004631/0.008753, allocations: 470.7 kB / 436.8 MB, free: 6.941 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.009036, allocations: 158 kB / 437 MB, free: 6.785 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003833/0.009419, allocations: 267.2 kB / 437.2 MB, free: 6.523 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.009636, allocations: 167.5 kB / 437.4 MB, free: 6.359 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.009669, allocations: 39.94 kB / 437.4 MB, free: 6.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004112/0.01008, allocations: 335 kB / 437.8 MB, free: 5.992 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.927e-05/0.01018, allocations: 127.6 kB / 437.9 MB, free: 5.867 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.368e-05/0.01026, allocations: 103.8 kB / 438 MB, free: 5.766 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006177/0.01088, allocations: 0.5959 MB / 438.6 MB, free: 5.168 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.01089, allocations: 0 / 438.6 MB, free: 5.168 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.01089, allocations: 0 / 438.6 MB, free: 5.168 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.01089, allocations: 0 / 438.6 MB, free: 5.168 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007488/0.01164, allocations: 0.5816 MB / 439.2 MB, free: 4.555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.01169, allocations: 19.98 kB / 439.2 MB, free: 4.535 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.113e-05/0.01174, allocations: 58.72 kB / 439.2 MB, free: 4.469 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004974/0.01223, allocations: 88.62 kB / 439.3 MB, free: 4.383 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.01261, allocations: 288.6 kB / 439.6 MB, free: 4.078 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.01263, allocations: 20.72 kB / 439.6 MB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.01266, allocations: 16.38 kB / 439.6 MB, free: 4.043 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004124/0.01307, allocations: 403.1 kB / 440 MB, free: 3.613 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.01308, allocations: 0 / 440 MB, free: 3.613 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.0131, allocations: 15.92 kB / 440.1 MB, free: 3.598 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.01313, allocations: 20.36 kB / 440.1 MB, free: 3.578 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004197/0.01355, allocations: 440.6 kB / 440.5 MB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.01479, allocations: 1.395 MB / 441.9 MB, free: 1.672 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.01522, allocations: 342.5 kB / 442.2 MB, free: 1.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.01534, allocations: 113.6 kB / 442.3 MB, free: 1.203 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.01536, allocations: 4 kB / 442.3 MB, free: 1.199 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.01558, allocations: 209.7 kB / 442.6 MB, free: 0.9727 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.01558, allocations: 0 / 442.6 MB, free: 0.9727 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.000513/0.0161, allocations: 432.3 kB / 443 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.01615, allocations: 136.8 kB / 443.1 MB, free: 392 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.01641, allocations: 352.5 kB / 443.5 MB, free: 32 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.171/0.1874, allocations: 31.23 kB / 443.5 MB, free: 54.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.1876, allocations: 182.3 kB / 443.7 MB, free: 54.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.237e-05/0.1876, allocations: 86.59 kB / 443.7 MB, free: 54.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.19e-05/0.1877, allocations: 58.34 kB / 443.8 MB, free: 54.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.1878, allocations: 339 kB / 444.1 MB, free: 54.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1879, allocations: 109.9 kB / 444.2 MB, free: 54.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.1881, allocations: 222.1 kB / 444.5 MB, free: 53.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.1883, allocations: 329.9 kB / 444.8 MB, free: 53.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1883, allocations: 7.188 kB / 444.8 MB, free: 53.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000369/0.1887, allocations: 393.8 kB / 445.2 MB, free: 53.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1887, allocations: 5.906 kB / 445.2 MB, free: 53.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1887, allocations: 7.062 kB / 445.2 MB, free: 53.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1887, allocations: 3.406 kB / 445.2 MB, free: 53.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.1889, allocations: 68.02 kB / 445.3 MB, free: 53.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.1889, allocations: 3.781 kB / 445.3 MB, free: 53.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.069e-05/0.189, allocations: 24.59 kB / 445.3 MB, free: 53.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.189, allocations: 14.73 kB / 445.3 MB, free: 53.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.1891, allocations: 182.7 kB / 445.5 MB, free: 53.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.1892, allocations: 31.12 kB / 445.5 MB, free: 53.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004047/0.1896, allocations: 410.8 kB / 445.9 MB, free: 53.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.1896, allocations: 3.125 kB / 445.9 MB, free: 53.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1896, allocations: 0 / 445.9 MB, free: 53.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1896, allocations: 10.31 kB / 445.9 MB, free: 53.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000643/0.1902, allocations: 0.7873 MB / 446.7 MB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1902, allocations: 2.438 kB / 446.7 MB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.1903, allocations: 55.7 kB / 446.8 MB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1903, allocations: 0 / 446.8 MB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.1904, allocations: 13.72 kB / 446.8 MB, free: 52.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1904, allocations: 4 kB / 446.8 MB, free: 52.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1904, allocations: 3.188 kB / 446.8 MB, free: 52.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.1907, allocations: 486.1 kB / 447.3 MB, free: 52.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.1907, allocations: 38.25 kB / 447.3 MB, free: 52.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.1908, allocations: 16.52 kB / 447.3 MB, free: 52.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.281e-05/0.1908, allocations: 7.25 kB / 447.3 MB, free: 52.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.1909, allocations: 30.42 kB / 447.3 MB, free: 52.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1909, allocations: 12.75 kB / 447.4 MB, free: 52.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001552/0.1911, allocations: 261.3 kB / 447.6 MB, free: 52.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1911, allocations: 0 / 447.6 MB, free: 52.54 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.1914, allocations: 100.4 kB / 447.7 MB, free: 52.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001288/0.1927, allocations: 1.475 MB / 449.2 MB, free: 51.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.193, allocations: 274.8 kB / 449.5 MB, free: 51.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.193, allocations: 0 / 449.5 MB, free: 51.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.1931, allocations: 142 kB / 449.6 MB, free: 51.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.1934, allocations: 71.61 kB / 449.7 MB, free: 51.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.1954, allocations: 3.241 MB / 452.9 MB, free: 49.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.848e-05/0.1955, allocations: 194.4 kB / 453.1 MB, free: 49.33 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.1957, allocations: 90.08 kB / 453.2 MB, free: 49.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1958, allocations: 114.9 kB / 453.3 MB, free: 49.24 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1958, allocations: 0 / 453.3 MB, free: 49.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.2134, allocations: 8.819 MB / 462.1 MB, free: 47.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.408, allocations: 3.344 kB / 462.1 MB, free: 47.34 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.CityTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv failed! Error: Could not read variable city.p[1] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv. Warning: Get data of variable city.p[1] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv failed! Error: Could not read variable city.p[2] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv. Warning: Get data of variable city.p[2] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.473175351507962]