Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.00104/0.00104, allocations: 181.3 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.255/1.255, 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.000923/0.0009229, allocations: 95.39 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1702/0.1702, allocations: 37.97 MB / 347.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2047/0.3749, allocations: 62.44 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.4786, allocations: 56.32 MB / 466.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3288/0.8075, allocations: 93.16 MB / 0.5465 GB, free: 1.352 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.8079, allocations: 87.94 kB / 0.5466 GB, free: 1.266 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.02054/0.8285, allocations: 6.636 MB / 0.553 GB, free: 10.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.8285, allocations: 12 kB / 0.553 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.8286, allocations: 35.53 kB / 0.5531 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.8304, allocations: 0.6498 MB / 0.5537 GB, free: 9.785 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.8304, allocations: 7.938 kB / 0.5537 GB, free: 9.777 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.8306, allocations: 28 kB / 0.5537 GB, free: 9.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003604/0.831, allocations: 164.8 kB / 0.5539 GB, free: 9.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003941/0.8314, allocations: 261 kB / 0.5542 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.8314, allocations: 0.75 kB / 0.5542 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.8314, allocations: 3.984 kB / 0.5542 GB, free: 9.297 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.8315, allocations: 8 kB / 0.5542 GB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.8332, allocations: 1.236 MB / 0.5554 GB, free: 7.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.8335, allocations: 111.8 kB / 0.5555 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.804e-05/0.8336, allocations: 42.64 kB / 0.5555 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.8336, allocations: 0 / 0.5555 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.8337, allocations: 42.56 kB / 0.5556 GB, free: 7.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 2.495e-06/0.8337, allocations: 3.938 kB / 0.5556 GB, free: 7.727 MB / 394.7 MB Notification: Performance of matching and sorting (n=11): time 0.0009665/0.8346, allocations: 495.6 kB / 0.556 GB, free: 7.188 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.963e-05/0.8347, allocations: 102.8 kB / 0.5561 GB, free: 7.062 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.8349, allocations: 201 kB / 0.5563 GB, free: 6.859 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.835, allocations: 33.77 kB / 0.5564 GB, free: 6.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.8351, allocations: 167.7 kB / 0.5565 GB, free: 6.652 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.8351, allocations: 47.39 kB / 0.5566 GB, free: 6.605 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/0.8352, allocations: 0 / 0.5566 GB, free: 6.605 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.8354, allocations: 330.8 kB / 0.5569 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.307e-05/0.8355, allocations: 32 kB / 0.5569 GB, free: 6.242 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.8356, allocations: 128.4 kB / 0.557 GB, free: 6.074 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.8357, allocations: 55.92 kB / 0.5571 GB, free: 6.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.8357, allocations: 0 / 0.5571 GB, free: 6.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004879/0.8362, allocations: 210 kB / 0.5573 GB, free: 5.805 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.8363, allocations: 5.406 kB / 0.5573 GB, free: 5.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.8363, allocations: 4 kB / 0.5573 GB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/0.8364, allocations: 28.84 kB / 0.5573 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/0.8368, allocations: 67.88 kB / 0.5574 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.8368, allocations: 7.938 kB / 0.5574 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.837, allocations: 8.25 kB / 0.5574 GB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.837, allocations: 8 kB / 0.5574 GB, free: 5.676 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.0001143/0.8371, allocations: 108.9 kB / 0.5575 GB, free: 5.562 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.956e-05/0.8372, allocations: 27.72 kB / 0.5575 GB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002983/0.8375, allocations: 139.2 kB / 0.5577 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.8376, allocations: 0 / 0.5577 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.8376, allocations: 0 / 0.5577 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.8376, allocations: 8 kB / 0.5577 GB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003611/0.838, allocations: 250.2 kB / 0.5579 GB, free: 5.102 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.838, allocations: 0 / 0.5579 GB, free: 5.102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.8382, allocations: 31.92 kB / 0.5579 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.8382, allocations: 0 / 0.5579 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.8382, allocations: 8 kB / 0.558 GB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.8382, allocations: 0 / 0.558 GB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.8382, allocations: 0 / 0.558 GB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004192/0.8386, allocations: 386.7 kB / 0.5583 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005873/0.8392, allocations: 0.8027 MB / 0.5591 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.8393, allocations: 100.8 kB / 0.5592 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.8394, allocations: 0 / 0.5592 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.8395, allocations: 0 / 0.5592 GB, free: 3.699 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.837e-05/0.8396, allocations: 11.89 kB / 0.5592 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.8396, allocations: 8 kB / 0.5592 GB, free: 3.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001515/0.8397, allocations: 157.2 kB / 0.5594 GB, free: 3.527 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001008/0.8408, allocations: 56.05 kB / 0.5594 GB, free: 3.473 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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.0001675/0.8409, allocations: 99.19 kB / 0.5595 GB, free: 3.367 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.8413, allocations: 205.9 kB / 0.5597 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.8413, allocations: 0 / 0.5597 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.639e-05/0.8414, allocations: 48.94 kB / 0.5598 GB, free: 3.098 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.8418, allocations: 53.3 kB / 0.5598 GB, free: 3.047 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008709/0.8427, allocations: 419.9 kB / 0.5602 GB, free: 2.602 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/0.8432, allocations: 0.8058 MB / 0.561 GB, free: 1.773 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.8432, allocations: 4 kB / 0.561 GB, free: 1.77 MB / 394.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC_res.mat does not exist to compare? outputFormat=mat