Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 187 kB / 8.135 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.2 MB / 213.7 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008985/0.0008986, allocations: 89.66 kB / 261.7 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1625/0.1625, allocations: 37.96 MB / 347.7 MB, free: 7.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1704/0.3329, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07804/0.411, allocations: 56.32 MB / 466.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2549/0.6659, allocations: 94.58 MB / 0.5479 GB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.6662, allocations: 79.95 kB / 0.5479 GB, free: 15.86 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.03407/0.7003, allocations: 14.66 MB / 0.5622 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.7003, allocations: 12 kB / 0.5623 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009715/0.7013, allocations: 111.6 kB / 0.5624 GB, free: 0.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.7017, allocations: 273.6 kB / 0.5626 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.7017, allocations: 7.938 kB / 0.5626 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.7017, allocations: 12 kB / 0.5626 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000328/0.7021, allocations: 208.3 kB / 0.5628 GB, free: 352 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/0.7025, allocations: 294.3 kB / 0.5631 GB, free: 28 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.7025, allocations: 0 / 0.5631 GB, free: 28 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.7025, allocations: 4 kB / 0.5631 GB, free: 24 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/0.7025, allocations: 15.98 kB / 0.5631 GB, free: 8 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.7041, allocations: 1.303 MB / 0.5644 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.7044, allocations: 129.2 kB / 0.5645 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.343e-05/0.7045, allocations: 45.77 kB / 0.5646 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.7045, allocations: 4 kB / 0.5646 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.7045, allocations: 34.5 kB / 0.5646 GB, free: 14.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.7045, allocations: 0 / 0.5646 GB, free: 14.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002532/0.7048, allocations: 125.6 kB / 0.5647 GB, free: 14.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.7048, allocations: 81.11 kB / 0.5648 GB, free: 14.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.705, allocations: 159.2 kB / 0.565 GB, free: 13.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.705, allocations: 25.7 kB / 0.565 GB, free: 13.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/0.7051, allocations: 163.6 kB / 0.5651 GB, free: 13.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.7051, allocations: 35.45 kB / 0.5652 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.7051, allocations: 3.938 kB / 0.5652 GB, free: 13.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.7053, allocations: 326.8 kB / 0.5655 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.611e-05/0.7053, allocations: 44.02 kB / 0.5655 GB, free: 13.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.7054, allocations: 128.8 kB / 0.5657 GB, free: 13.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.986e-05/0.7055, allocations: 67.89 kB / 0.5657 GB, free: 13.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7056, allocations: 4 kB / 0.5657 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002674/0.7058, allocations: 189.2 kB / 0.5659 GB, free: 12.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.7059, allocations: 5.406 kB / 0.5659 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.7059, allocations: 4 kB / 0.5659 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.7059, allocations: 8.438 kB / 0.5659 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.7061, allocations: 51.92 kB / 0.566 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.7061, allocations: 8.031 kB / 0.566 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.7062, allocations: 23.67 kB / 0.566 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.7063, allocations: 16 kB / 0.566 GB, free: 12.83 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.952e-05/0.7063, allocations: 108.9 kB / 0.5661 GB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.7064, allocations: 15.81 kB / 0.5661 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002319/0.7066, allocations: 134.9 kB / 0.5663 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.7066, allocations: 4 kB / 0.5663 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7066, allocations: 4 kB / 0.5663 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.7066, allocations: 3.984 kB / 0.5663 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007786/0.7074, allocations: 0.7286 MB / 0.567 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.7074, allocations: 0 / 0.567 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.7076, allocations: 27.92 kB / 0.567 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.7076, allocations: 4 kB / 0.567 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.7076, allocations: 4 kB / 0.567 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.7076, allocations: 4 kB / 0.567 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.7076, allocations: 4.375 kB / 0.567 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003281/0.708, allocations: 438 kB / 0.5675 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004131/0.7084, allocations: 0.8109 MB / 0.5682 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.881e-05/0.7085, allocations: 100.8 kB / 0.5683 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.7085, allocations: 4 kB / 0.5683 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.7087, allocations: 4 kB / 0.5683 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.583e-05/0.7087, allocations: 27.83 kB / 0.5684 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.7087, allocations: 7.984 kB / 0.5684 GB, free: 10 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.283e-05/0.7088, allocations: 131.1 kB / 0.5685 GB, free: 9.875 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009169/0.7097, allocations: 55.84 kB / 0.5686 GB, free: 9.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000121/0.7099, allocations: 103.2 kB / 0.5687 GB, free: 9.711 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.7101, allocations: 124.8 kB / 0.5688 GB, free: 9.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7101, allocations: 4 kB / 0.5688 GB, free: 9.586 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.359e-05/0.7102, allocations: 47.86 kB / 0.5688 GB, free: 9.539 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.7105, allocations: 37.5 kB / 0.5689 GB, free: 9.504 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006289/0.7111, allocations: 333.1 kB / 0.5692 GB, free: 9.121 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.7114, allocations: 0.7823 MB / 0.5699 GB, free: 8.312 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.7115, allocations: 0 / 0.5699 GB, free: 8.312 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat does not exist to compare? outputFormat=mat