Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001008/0.001008, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.196/1.196, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0009548/0.0009548, allocations: 93.77 kB / 261.8 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.1737/0.1737, allocations: 37.97 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.192/0.3658, allocations: 62.44 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09791/0.4637, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2772/0.741, allocations: 98.74 MB / 0.5519 GB, free: 11.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.7413, allocations: 91.94 kB / 0.552 GB, free: 11.66 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.03218/0.7735, allocations: 11.64 MB / 0.5634 GB, free: 15.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.7735, allocations: 8 kB / 0.5634 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.7737, allocations: 51.38 kB / 0.5634 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.7749, allocations: 0.5528 MB / 0.564 GB, free: 15.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.91e-05/0.775, allocations: 42.48 kB / 0.564 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.118e-05/0.7751, allocations: 23.91 kB / 0.564 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00044/0.7755, allocations: 225.5 kB / 0.5642 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/0.7761, allocations: 377.6 kB / 0.5646 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.7761, allocations: 4 kB / 0.5646 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.7762, allocations: 4 kB / 0.5646 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.7762, allocations: 8 kB / 0.5646 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.7784, allocations: 1.786 MB / 0.5664 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.7786, allocations: 119.5 kB / 0.5665 GB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.7787, allocations: 82.5 kB / 0.5666 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.7788, allocations: 3.938 kB / 0.5666 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.7788, allocations: 38.56 kB / 0.5666 GB, free: 12.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.7788, allocations: 0 / 0.5666 GB, free: 12.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.000999/0.7798, allocations: 0.6019 MB / 0.5672 GB, free: 11.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/0.7799, allocations: 110.9 kB / 0.5673 GB, free: 11.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.7802, allocations: 235.4 kB / 0.5675 GB, free: 11.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.7802, allocations: 25.7 kB / 0.5675 GB, free: 11.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.7803, allocations: 215.5 kB / 0.5677 GB, free: 11.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/0.7804, allocations: 71 kB / 0.5678 GB, free: 10.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.143e-05/0.7804, allocations: 4 kB / 0.5678 GB, free: 10.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.7805, allocations: 334.8 kB / 0.5681 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.7807, allocations: 64.64 kB / 0.5682 GB, free: 10.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.7808, allocations: 185.4 kB / 0.5684 GB, free: 10.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.781, allocations: 103.3 kB / 0.5685 GB, free: 10.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.781, allocations: 0 / 0.5685 GB, free: 10.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004141/0.7814, allocations: 280 kB / 0.5687 GB, free: 9.934 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.7815, allocations: 4 kB / 0.5687 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.7815, allocations: 4 kB / 0.5687 GB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.7815, allocations: 11.98 kB / 0.5688 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.7818, allocations: 87.83 kB / 0.5688 GB, free: 9.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.7819, allocations: 7.906 kB / 0.5689 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.7821, allocations: 12.28 kB / 0.5689 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.7821, allocations: 15.98 kB / 0.5689 GB, free: 9.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * 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 0.0001004/0.7822, allocations: 124.8 kB / 0.569 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.286e-05/0.7823, allocations: 27.62 kB / 0.569 GB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002908/0.7826, allocations: 175.6 kB / 0.5692 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.7826, allocations: 4 kB / 0.5692 GB, free: 9.453 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.7826, allocations: 0 / 0.5692 GB, free: 9.453 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.7826, allocations: 7.984 kB / 0.5692 GB, free: 9.445 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.7834, allocations: 0.5386 MB / 0.5697 GB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.7834, allocations: 4 kB / 0.5697 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.7837, allocations: 43.92 kB / 0.5698 GB, free: 8.812 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.7837, allocations: 7.984 kB / 0.5698 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.7837, allocations: 0 / 0.5698 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.7837, allocations: 4 kB / 0.5698 GB, free: 8.801 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7837, allocations: 7.969 kB / 0.5698 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005258/0.7843, allocations: 456.9 kB / 0.5702 GB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006565/0.7849, allocations: 0.8885 MB / 0.5711 GB, free: 7.367 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.785, allocations: 104.8 kB / 0.5712 GB, free: 7.246 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/0.7851, allocations: 7.906 kB / 0.5712 GB, free: 7.238 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.7853, allocations: 7.984 kB / 0.5712 GB, free: 7.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.7853, allocations: 7.984 kB / 0.5712 GB, free: 7.223 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.7854, allocations: 8 kB / 0.5712 GB, free: 7.215 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001507/0.7855, allocations: 183.1 kB / 0.5714 GB, free: 7.035 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009699/0.7865, allocations: 64 kB / 0.5715 GB, free: 6.973 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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.0001972/0.7867, allocations: 131.1 kB / 0.5716 GB, free: 6.836 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002977/0.787, allocations: 168.3 kB / 0.5717 GB, free: 6.672 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.787, allocations: 4 kB / 0.5718 GB, free: 6.668 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.7872, allocations: 75.83 kB / 0.5718 GB, free: 6.594 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.7877, allocations: 69.64 kB / 0.5719 GB, free: 6.527 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.7891, allocations: 0.6604 MB / 0.5725 GB, free: 5.836 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005568/0.7897, allocations: 0.8567 MB / 0.5734 GB, free: 4.953 MB / 410.7 MB Notification: Performance of SimCode: time 3.01e-07/0.7897, allocations: 0 / 0.5734 GB, free: 4.953 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat does not exist to compare? outputFormat=mat