Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",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.0009984/0.0009984, allocations: 183.1 kB / 8.135 MB, free: 2.223 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.167/1.167, 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.0009043/0.0009043, allocations: 95.34 kB / 261.8 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.1708/0.1708, allocations: 37.97 MB / 347.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.188/0.3589, allocations: 62.44 MB / 410.1 MB, free: 46.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.4659, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3113/0.7773, allocations: 121.6 MB / 0.5742 GB, free: 4.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.7776, allocations: 99.92 kB / 0.5743 GB, free: 4.832 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.1037/0.8813, allocations: 36.31 MB / 0.6098 GB, free: 116 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.8814, allocations: 8 kB / 0.6098 GB, free: 108 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008929/0.8823, allocations: 158.3 kB / 0.6099 GB, free: 15.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003594/0.8859, allocations: 1.226 MB / 0.6111 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.886, allocations: 32 kB / 0.6112 GB, free: 14.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/0.8864, allocations: 83.89 kB / 0.6113 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00204/0.8884, allocations: 0.9491 MB / 0.6122 GB, free: 13.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.8906, allocations: 1.176 MB / 0.6133 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.817e-05/0.8906, allocations: 11.84 kB / 0.6133 GB, free: 12.34 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.084e-05/0.8907, allocations: 0 / 0.6133 GB, free: 12.34 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/0.8908, allocations: 69.97 kB / 0.6134 GB, free: 12.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007452/0.8983, allocations: 4.871 MB / 0.6182 GB, free: 7.184 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006826/0.899, allocations: 436.6 kB / 0.6186 GB, free: 6.727 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/0.8996, allocations: 339.9 kB / 0.6189 GB, free: 6.387 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.482e-05/0.8996, allocations: 4.5 kB / 0.6189 GB, free: 6.383 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.8997, allocations: 39.06 kB / 0.6189 GB, free: 6.336 MB / 458.7 MB Notification: Performance of pre-optimization done (n=64): time 2.605e-06/0.8997, allocations: 0 / 0.6189 GB, free: 6.336 MB / 458.7 MB Notification: Performance of matching and sorting (n=71): time 0.0041/0.9038, allocations: 2.055 MB / 0.621 GB, free: 4.203 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.9039, allocations: 115.5 kB / 0.6211 GB, free: 4.066 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000791/0.9047, allocations: 0.5235 MB / 0.6216 GB, free: 3.535 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/0.9047, allocations: 25.7 kB / 0.6216 GB, free: 3.504 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.905, allocations: 466.4 kB / 0.622 GB, free: 3.039 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.9053, allocations: 252.2 kB / 0.6223 GB, free: 2.789 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.9053, allocations: 0 / 0.6223 GB, free: 2.789 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.9055, allocations: 394.7 kB / 0.6227 GB, free: 2.395 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.9059, allocations: 261.9 kB / 0.6229 GB, free: 2.137 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.9065, allocations: 0.5128 MB / 0.6234 GB, free: 1.508 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005609/0.9071, allocations: 362.9 kB / 0.6238 GB, free: 1.152 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.9071, allocations: 4 kB / 0.6238 GB, free: 1.148 MB / 458.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002771/0.9099, allocations: 1.152 MB / 0.6249 GB, free: 15.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001241/0.9111, allocations: 3.219 MB / 0.628 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.9112, allocations: 11.98 kB / 0.628 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00147/0.9127, allocations: 388.5 kB / 0.6284 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007577/0.9134, allocations: 167.7 kB / 0.6286 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.9152, allocations: 1.216 MB / 0.6298 GB, free: 10.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006937/0.9159, allocations: 19.97 kB / 0.6298 GB, free: 10.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.817e-05/0.9159, allocations: 36 kB / 0.6298 GB, free: 10.65 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.916, allocations: 4 kB / 0.6298 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002327/0.9183, allocations: 1.018 MB / 0.6308 GB, free: 9.625 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.9183, allocations: 8.312 kB / 0.6308 GB, free: 9.617 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.9197, allocations: 381 kB / 0.6312 GB, free: 9.242 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007043/0.9204, allocations: 167.8 kB / 0.6313 GB, free: 9.078 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/0.9268, allocations: 4.138 MB / 0.6354 GB, free: 4.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006091/0.9275, allocations: 15.91 kB / 0.6354 GB, free: 4.805 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.575e-05/0.9275, allocations: 39.98 kB / 0.6354 GB, free: 4.766 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: 0.0 = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.000264/0.9278, allocations: 143.5 kB / 0.6356 GB, free: 4.621 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.928, allocations: 90.88 kB / 0.6357 GB, free: 4.531 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.9293, allocations: 0.7879 MB / 0.6364 GB, free: 3.711 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.9293, allocations: 8 kB / 0.6364 GB, free: 3.703 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.9293, allocations: 4 kB / 0.6364 GB, free: 3.699 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.9293, allocations: 3.984 kB / 0.6364 GB, free: 3.695 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.9319, allocations: 1.622 MB / 0.638 GB, free: 2.027 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.9319, allocations: 7.938 kB / 0.638 GB, free: 2.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/0.9328, allocations: 155.8 kB / 0.6382 GB, free: 1.867 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.9328, allocations: 8.031 kB / 0.6382 GB, free: 1.859 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.012e-05/0.9329, allocations: 8 kB / 0.6382 GB, free: 1.852 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.9329, allocations: 3.938 kB / 0.6382 GB, free: 1.848 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.9329, allocations: 7.906 kB / 0.6382 GB, free: 1.84 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00152/0.9344, allocations: 1.212 MB / 0.6394 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1309/1.065, allocations: 1.966 MB / 0.6413 GB, free: 183.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/1.066, allocations: 210 kB / 0.6415 GB, free: 183.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/1.066, allocations: 7.469 kB / 0.6415 GB, free: 183.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/1.066, allocations: 7.672 kB / 0.6415 GB, free: 183.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.413e-05/1.066, allocations: 39.59 kB / 0.6416 GB, free: 183.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/1.067, allocations: 18.78 kB / 0.6416 GB, free: 183.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004744/1.067, allocations: 409.3 kB / 0.642 GB, free: 183.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002539/1.07, allocations: 385.8 kB / 0.6423 GB, free: 183.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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.0002724/1.07, allocations: 185 kB / 0.6425 GB, free: 183.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002651/1.073, allocations: 1.474 MB / 0.644 GB, free: 183.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.073, allocations: 0 / 0.644 GB, free: 183.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003996/1.073, allocations: 331.8 kB / 0.6443 GB, free: 183.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008669/1.074, allocations: 165.5 kB / 0.6444 GB, free: 183.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/1.077, allocations: 1.957 MB / 0.6463 GB, free: 183.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008434/1.078, allocations: 1.294 MB / 0.6476 GB, free: 182.3 MB / 474.7 MB Notification: Performance of SimCode: time 7.51e-07/1.078, allocations: 0 / 0.6476 GB, free: 182.3 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat does not exist to compare? outputFormat=mat