Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.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.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",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.001686/0.001691, allocations: 180.6 kB / 8.131 MB, free: 2.191 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.309/1.309, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.0009315/0.0009315, allocations: 87.64 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.172/0.172, allocations: 37.97 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2092/0.3813, allocations: 62.45 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.4915, allocations: 56.3 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3255/0.8171, allocations: 95.62 MB / 0.5489 GB, free: 14.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.8174, allocations: 83.95 kB / 0.5489 GB, free: 14.89 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.03513/0.8525, allocations: 12.73 MB / 0.5614 GB, free: 1.973 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.8526, allocations: 12 kB / 0.5614 GB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006511/0.8532, allocations: 95.36 kB / 0.5615 GB, free: 1.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002161/0.8554, allocations: 0.8605 MB / 0.5623 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.8554, allocations: 12 kB / 0.5623 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.038e-05/0.8555, allocations: 23.98 kB / 0.5624 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004551/0.856, allocations: 289.4 kB / 0.5626 GB, free: 0.6445 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005867/0.8566, allocations: 424.5 kB / 0.563 GB, free: 212 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.8566, allocations: 4 kB / 0.563 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.8566, allocations: 0 / 0.563 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.44e-05/0.8567, allocations: 20.77 kB / 0.5631 GB, free: 188 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.8587, allocations: 1.649 MB / 0.5647 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.859, allocations: 128.2 kB / 0.5648 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.8591, allocations: 106.5 kB / 0.5649 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.8591, allocations: 4 kB / 0.5649 GB, free: 14.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.8592, allocations: 38.47 kB / 0.5649 GB, free: 14.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.8592, allocations: 0 / 0.5649 GB, free: 14.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001069/0.8602, allocations: 0.6791 MB / 0.5656 GB, free: 13.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.8603, allocations: 89.05 kB / 0.5657 GB, free: 13.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002382/0.8605, allocations: 243.4 kB / 0.5659 GB, free: 13.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.8606, allocations: 33.64 kB / 0.5659 GB, free: 13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.8607, allocations: 219.4 kB / 0.5662 GB, free: 12.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.8607, allocations: 67.03 kB / 0.5662 GB, free: 12.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.8608, allocations: 0 / 0.5662 GB, free: 12.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.8609, allocations: 338.8 kB / 0.5665 GB, free: 12.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.861, allocations: 92.25 kB / 0.5666 GB, free: 12.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.8612, allocations: 197 kB / 0.5668 GB, free: 12.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.8614, allocations: 135.3 kB / 0.5669 GB, free: 11.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.8614, allocations: 0 / 0.5669 GB, free: 11.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000809/0.8622, allocations: 444.4 kB / 0.5674 GB, free: 11.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.8623, allocations: 9.844 kB / 0.5674 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005791/0.8628, allocations: 297.8 kB / 0.5677 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005102/0.8634, allocations: 132.8 kB / 0.5678 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.8636, allocations: 55.91 kB / 0.5678 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.8659, allocations: 2.028 MB / 0.5698 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.8661, allocations: 15.89 kB / 0.5698 GB, free: 8.824 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.8661, allocations: 19.94 kB / 0.5699 GB, free: 8.805 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 (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.8662, allocations: 113 kB / 0.57 GB, free: 8.688 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/0.8663, allocations: 27.62 kB / 0.57 GB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004165/0.8667, allocations: 248.5 kB / 0.5702 GB, free: 8.406 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.8667, allocations: 4 kB / 0.5702 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.8667, allocations: 0 / 0.5702 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.8667, allocations: 0 / 0.5702 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.8678, allocations: 0.6981 MB / 0.5709 GB, free: 7.645 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.8678, allocations: 4 kB / 0.5709 GB, free: 7.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.868, allocations: 35.97 kB / 0.571 GB, free: 7.605 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001017/0.8682, allocations: 36.84 kB / 0.571 GB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.8682, allocations: 7.984 kB / 0.571 GB, free: 7.559 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.8682, allocations: 0 / 0.571 GB, free: 7.559 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.8682, allocations: 7.938 kB / 0.571 GB, free: 7.551 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000541/0.8687, allocations: 0.5007 MB / 0.5715 GB, free: 6.984 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007373/0.8695, allocations: 0.966 MB / 0.5724 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.8696, allocations: 105 kB / 0.5725 GB, free: 5.828 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.497e-05/0.8696, allocations: 4 kB / 0.5725 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.8698, allocations: 8 kB / 0.5725 GB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.8698, allocations: 15.89 kB / 0.5726 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.8699, allocations: 8 kB / 0.5726 GB, free: 5.793 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001614/0.87, allocations: 191.1 kB / 0.5728 GB, free: 5.609 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001035/0.8711, allocations: 88 kB / 0.5728 GB, free: 5.523 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.8712, allocations: 124.7 kB / 0.573 GB, free: 5.395 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005861/0.8718, allocations: 366 kB / 0.5733 GB, free: 5.027 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.8719, allocations: 0 / 0.5733 GB, free: 5.027 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.872, allocations: 181.8 kB / 0.5735 GB, free: 4.828 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.8724, allocations: 48.53 kB / 0.5735 GB, free: 4.777 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.8735, allocations: 0.6796 MB / 0.5742 GB, free: 4.059 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004447/0.8739, allocations: 0.8726 MB / 0.575 GB, free: 3.156 MB / 410.7 MB Notification: Performance of SimCode: time 2.8e-07/0.8739, allocations: 0 / 0.575 GB, free: 3.156 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat does not exist to compare? outputFormat=mat