Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001597/0.001597, allocations: 184.3 kB / 8.137 MB, free: 2.199 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.1/1.1, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008799/0.0008799, allocations: 94.88 kB / 261.7 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.166/0.166, allocations: 37.96 MB / 347.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1969/0.3629, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.4637, allocations: 56.31 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3049/0.7686, allocations: 93.64 MB / 0.5469 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.7689, allocations: 79.95 kB / 0.547 GB, free: 0.8125 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.02556/0.7945, allocations: 9.886 MB / 0.5567 GB, free: 6.781 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.7946, allocations: 8 kB / 0.5567 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007652/0.7953, allocations: 91.61 kB / 0.5567 GB, free: 6.684 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.7958, allocations: 262.9 kB / 0.557 GB, free: 6.387 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.7958, allocations: 4 kB / 0.557 GB, free: 6.383 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.064e-05/0.7959, allocations: 15.91 kB / 0.557 GB, free: 6.367 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002756/0.7961, allocations: 140.2 kB / 0.5572 GB, free: 6.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.7965, allocations: 231.7 kB / 0.5574 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.7965, allocations: 3.938 kB / 0.5574 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.7966, allocations: 0 / 0.5574 GB, free: 5.977 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.23e-05/0.7966, allocations: 20.31 kB / 0.5574 GB, free: 5.957 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.7983, allocations: 1.215 MB / 0.5586 GB, free: 4.648 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.7987, allocations: 149.3 kB / 0.5587 GB, free: 4.484 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.671e-05/0.7988, allocations: 49.72 kB / 0.5588 GB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.7988, allocations: 0 / 0.5588 GB, free: 4.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.7988, allocations: 34.56 kB / 0.5588 GB, free: 4.387 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.7988, allocations: 0 / 0.5588 GB, free: 4.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003011/0.7991, allocations: 125.7 kB / 0.5589 GB, free: 4.258 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.7992, allocations: 85.05 kB / 0.559 GB, free: 4.156 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.7993, allocations: 151.6 kB / 0.5592 GB, free: 4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.7994, allocations: 25.7 kB / 0.5592 GB, free: 3.969 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.858e-05/0.7995, allocations: 147.9 kB / 0.5593 GB, free: 3.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.7995, allocations: 47.28 kB / 0.5594 GB, free: 3.773 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.7995, allocations: 0 / 0.5594 GB, free: 3.773 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.7997, allocations: 330.8 kB / 0.5597 GB, free: 3.441 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.924e-05/0.7998, allocations: 32 kB / 0.5597 GB, free: 3.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.7999, allocations: 120.7 kB / 0.5598 GB, free: 3.258 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.8001, allocations: 61.28 kB / 0.5599 GB, free: 3.199 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.8001, allocations: 4 kB / 0.5599 GB, free: 3.195 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000291/0.8004, allocations: 183.4 kB / 0.5601 GB, free: 3.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.8004, allocations: 8.656 kB / 0.5601 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.8004, allocations: 4 kB / 0.5601 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.8005, allocations: 4 kB / 0.5601 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.8007, allocations: 47.92 kB / 0.5601 GB, free: 2.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.8007, allocations: 7.984 kB / 0.5601 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.8008, allocations: 11.84 kB / 0.5601 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.8008, allocations: 8 kB / 0.5601 GB, free: 2.922 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 9.338e-05/0.8009, allocations: 116.8 kB / 0.5603 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.853e-05/0.801, allocations: 15.81 kB / 0.5603 GB, free: 2.785 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002843/0.8013, allocations: 139 kB / 0.5604 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.8013, allocations: 0 / 0.5604 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.8013, allocations: 7.938 kB / 0.5604 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.8013, allocations: 7.984 kB / 0.5604 GB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008058/0.8021, allocations: 0.6196 MB / 0.561 GB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.8022, allocations: 4 kB / 0.561 GB, free: 1.918 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.8023, allocations: 35.86 kB / 0.5611 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.8024, allocations: 4 kB / 0.5611 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.8024, allocations: 4 kB / 0.5611 GB, free: 1.875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.8024, allocations: 4 kB / 0.5611 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.8024, allocations: 3.938 kB / 0.5611 GB, free: 1.867 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005318/0.8029, allocations: 457.1 kB / 0.5615 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007518/0.8037, allocations: 0.8714 MB / 0.5624 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.936e-05/0.8038, allocations: 97.12 kB / 0.5625 GB, free: 244 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.8038, allocations: 4 kB / 0.5625 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.8039, allocations: 4 kB / 0.5625 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.804, allocations: 19.83 kB / 0.5625 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.804, allocations: 12.06 kB / 0.5625 GB, free: 204 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.000113/0.8041, allocations: 124.3 kB / 0.5626 GB, free: 80 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.000993/0.8051, allocations: 51.83 kB / 0.5627 GB, free: 28 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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.0001767/0.8053, allocations: 103.2 kB / 0.5628 GB, free: 15.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002146/0.8055, allocations: 123.7 kB / 0.5629 GB, free: 15.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8055, allocations: 0.6875 kB / 0.5629 GB, free: 15.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.051e-05/0.8056, allocations: 56.3 kB / 0.5629 GB, free: 15.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.806, allocations: 35.88 kB / 0.563 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000874/0.8069, allocations: 425.8 kB / 0.5634 GB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/0.8073, allocations: 0.7743 MB / 0.5641 GB, free: 14.44 MB / 410.7 MB Notification: Performance of SimCode: time 3.01e-07/0.8074, allocations: 0 / 0.5641 GB, free: 14.44 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat does not exist to compare? outputFormat=mat