Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.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.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.PowerTransfer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer",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.001002/0.001002, allocations: 183.4 kB / 8.134 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.475/1.475, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009446/0.0009446, allocations: 83.45 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1792/0.1792, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.24/0.4192, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.556, allocations: 56.31 MB / 466.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4197/0.9758, allocations: 95.09 MB / 0.5483 GB, free: 15.42 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.9761, allocations: 91.94 kB / 0.5484 GB, free: 15.33 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.04283/1.019, allocations: 13.12 MB / 0.5612 GB, free: 2.012 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/1.019, allocations: 8 kB / 0.5613 GB, free: 2.004 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008717/1.02, allocations: 99.34 kB / 0.5613 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002667/1.023, allocations: 0.8609 MB / 0.5622 GB, free: 1.004 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/1.023, allocations: 19.92 kB / 0.5622 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.758e-05/1.023, allocations: 20 kB / 0.5622 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005767/1.023, allocations: 273.5 kB / 0.5625 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008135/1.024, allocations: 424.4 kB / 0.5629 GB, free: 264 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/1.024, allocations: 7.906 kB / 0.5629 GB, free: 256 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/1.024, allocations: 0 / 0.5629 GB, free: 256 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.177e-05/1.024, allocations: 24.77 kB / 0.5629 GB, free: 232 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002923/1.027, allocations: 1.56 MB / 0.5644 GB, free: 14.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/1.028, allocations: 124.3 kB / 0.5646 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/1.028, allocations: 105.8 kB / 0.5647 GB, free: 14.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/1.028, allocations: 3.984 kB / 0.5647 GB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/1.028, allocations: 38.56 kB / 0.5647 GB, free: 14.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=19): time 2.374e-06/1.028, allocations: 7.938 kB / 0.5647 GB, free: 14.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.00138/1.029, allocations: 0.6761 MB / 0.5654 GB, free: 13.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/1.029, allocations: 85.11 kB / 0.5655 GB, free: 13.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/1.03, allocations: 239.5 kB / 0.5657 GB, free: 13.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/1.03, allocations: 25.7 kB / 0.5657 GB, free: 13.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/1.03, allocations: 219.5 kB / 0.5659 GB, free: 12.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.706e-05/1.03, allocations: 74.95 kB / 0.566 GB, free: 12.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/1.03, allocations: 4.031 kB / 0.566 GB, free: 12.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/1.03, allocations: 350.6 kB / 0.5663 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/1.03, allocations: 87.97 kB / 0.5664 GB, free: 12.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/1.031, allocations: 189.1 kB / 0.5666 GB, free: 12.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/1.031, allocations: 135.9 kB / 0.5667 GB, free: 12.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/1.031, allocations: 0 / 0.5667 GB, free: 12.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009157/1.032, allocations: 401 kB / 0.5671 GB, free: 11.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/1.032, allocations: 4.312 kB / 0.5671 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006413/1.032, allocations: 248.6 kB / 0.5673 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004567/1.033, allocations: 76.78 kB / 0.5674 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003592/1.033, allocations: 72.02 kB / 0.5675 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002052/1.035, allocations: 1.502 MB / 0.569 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/1.036, allocations: 4 kB / 0.569 GB, free: 9.656 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/1.036, allocations: 20 kB / 0.569 GB, free: 9.637 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 (34): * Single equations (assignments): 33 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.036, allocations: 108.8 kB / 0.5691 GB, free: 9.523 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/1.036, allocations: 31.62 kB / 0.5691 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005981/1.037, allocations: 258.4 kB / 0.5694 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/1.037, allocations: 0 / 0.5694 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/1.037, allocations: 0 / 0.5694 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.037, allocations: 7.938 kB / 0.5694 GB, free: 9.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/1.038, allocations: 0.7011 MB / 0.5701 GB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/1.038, allocations: 4 kB / 0.5701 GB, free: 8.469 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/1.039, allocations: 47.92 kB / 0.5701 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/1.039, allocations: 0 / 0.5701 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/1.039, allocations: 11.89 kB / 0.5701 GB, free: 8.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/1.039, allocations: 4 kB / 0.5701 GB, free: 8.406 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/1.039, allocations: 3.938 kB / 0.5701 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000849/1.04, allocations: 0.4998 MB / 0.5706 GB, free: 7.84 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001105/1.041, allocations: 0.993 MB / 0.5716 GB, free: 6.781 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/1.041, allocations: 105 kB / 0.5717 GB, free: 6.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/1.041, allocations: 7.984 kB / 0.5717 GB, free: 6.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/1.041, allocations: 4 kB / 0.5717 GB, free: 6.648 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/1.041, allocations: 23.88 kB / 0.5717 GB, free: 6.625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/1.041, allocations: 8 kB / 0.5717 GB, free: 6.617 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002429/1.042, allocations: 191.1 kB / 0.5719 GB, free: 6.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001174/1.043, allocations: 91.98 kB / 0.572 GB, free: 6.34 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 (23): * Single equations (assignments): 22 * 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.0002541/1.043, allocations: 123.2 kB / 0.5721 GB, free: 6.207 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008395/1.044, allocations: 337.5 kB / 0.5724 GB, free: 5.867 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/1.044, allocations: 0 / 0.5724 GB, free: 5.867 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/1.044, allocations: 96.91 kB / 0.5725 GB, free: 5.773 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004925/1.045, allocations: 57.16 kB / 0.5726 GB, free: 5.719 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/1.046, allocations: 0.7157 MB / 0.5733 GB, free: 4.957 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007306/1.047, allocations: 0.8874 MB / 0.5741 GB, free: 4.039 MB / 410.7 MB Notification: Performance of SimCode: time 3.1e-07/1.047, allocations: 0 / 0.5741 GB, free: 4.039 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_PowerTransfer.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.PowerTransfer_res.mat does not exist to compare? outputFormat=mat