Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.2+maint.om/package.mo): time 0.00102/0.00102, allocations: 187 kB / 8.139 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.073/1.073, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001691/0.001691, allocations: 125.3 kB / 247.8 MB, free: 6.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1605/0.1605, allocations: 37.92 MB / 330.5 MB, free: 6.969 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1938/0.3543, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.4326, allocations: 53.22 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2678/0.7005, allocations: 91.82 MB / 0.5224 GB, free: 9.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.7008, allocations: 90.23 kB / 0.5225 GB, free: 9.723 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0261/0.7269, allocations: 10.11 MB / 0.5324 GB, free: 5.742 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.727, allocations: 8.938 kB / 0.5324 GB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.957e-05/0.7271, allocations: 42.91 kB / 0.5324 GB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.7283, allocations: 0.6056 MB / 0.533 GB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.7284, allocations: 12.56 kB / 0.533 GB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.741e-05/0.7284, allocations: 15.47 kB / 0.533 GB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003421/0.7288, allocations: 175.3 kB / 0.5332 GB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003685/0.7291, allocations: 301.5 kB / 0.5335 GB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.7292, allocations: 3.938 kB / 0.5335 GB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.7292, allocations: 4 kB / 0.5335 GB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.7292, allocations: 7.906 kB / 0.5335 GB, free: 4.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.7304, allocations: 1.432 MB / 0.5349 GB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.7305, allocations: 142.3 kB / 0.535 GB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.403e-05/0.7306, allocations: 70.61 kB / 0.5351 GB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.7307, allocations: 4 kB / 0.5351 GB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.7307, allocations: 49.48 kB / 0.5351 GB, free: 3.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.854e-06/0.7307, allocations: 0 / 0.5351 GB, free: 3.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009547/0.7317, allocations: 0.7769 MB / 0.5359 GB, free: 2.555 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.7317, allocations: 132.6 kB / 0.536 GB, free: 2.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.7319, allocations: 238.2 kB / 0.5363 GB, free: 2.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.7319, allocations: 25.7 kB / 0.5363 GB, free: 2.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.7319, allocations: 185.8 kB / 0.5365 GB, free: 1.992 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.732, allocations: 59.23 kB / 0.5365 GB, free: 1.941 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.732, allocations: 0 / 0.5365 GB, free: 1.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.963e-05/0.7321, allocations: 348 kB / 0.5368 GB, free: 1.605 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.75e-05/0.7321, allocations: 41.38 kB / 0.5369 GB, free: 1.582 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.034e-05/0.7322, allocations: 146.5 kB / 0.537 GB, free: 1.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.276e-05/0.7323, allocations: 68.59 kB / 0.5371 GB, free: 1.367 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7323, allocations: 4 kB / 0.5371 GB, free: 1.363 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002845/0.7326, allocations: 228.8 kB / 0.5373 GB, free: 1.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.7326, allocations: 7.281 kB / 0.5373 GB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.7327, allocations: 4 kB / 0.5373 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.7327, allocations: 4 kB / 0.5373 GB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.7331, allocations: 88.27 kB / 0.5374 GB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000642/0.7337, allocations: 1.233 MB / 0.5386 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.7339, allocations: 8 kB / 0.5386 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.7339, allocations: 8 kB / 0.5386 GB, free: 15.72 MB / 362.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 (32): * Single equations (assignments): 31 * 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): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.707e-05/0.734, allocations: 116.8 kB / 0.5387 GB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.7341, allocations: 34.81 kB / 0.5388 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.7344, allocations: 163.3 kB / 0.5389 GB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.7344, allocations: 4 kB / 0.5389 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.7344, allocations: 8.094 kB / 0.5389 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.7344, allocations: 3.938 kB / 0.5389 GB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006462/0.7351, allocations: 497.7 kB / 0.5394 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.7351, allocations: 0 / 0.5394 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.7354, allocations: 59.66 kB / 0.5395 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.7354, allocations: 0 / 0.5395 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.7354, allocations: 4 kB / 0.5395 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.7354, allocations: 7.906 kB / 0.5395 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.7354, allocations: 0 / 0.5395 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004052/0.7358, allocations: 0.504 MB / 0.54 GB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006069/0.7364, allocations: 0.9497 MB / 0.5409 GB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.7365, allocations: 100.7 kB / 0.541 GB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.7366, allocations: 0 / 0.541 GB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.7368, allocations: 4 kB / 0.541 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/0.7369, allocations: 11.11 kB / 0.541 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.7369, allocations: 7.906 kB / 0.541 GB, free: 13.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001995/0.7371, allocations: 180 kB / 0.5412 GB, free: 13.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00107/0.7382, allocations: 56 kB / 0.5413 GB, free: 13.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (motor.phi_el,motor.w_el,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.0002326/0.7384, allocations: 150 kB / 0.5414 GB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.7387, allocations: 138.9 kB / 0.5415 GB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.7388, allocations: 4 kB / 0.5415 GB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.7389, allocations: 66.05 kB / 0.5416 GB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005653/0.7394, allocations: 71.91 kB / 0.5417 GB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.7408, allocations: 0.5744 MB / 0.5422 GB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004576/0.7413, allocations: 0.8437 MB / 0.543 GB, free: 11.39 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.7413, allocations: 0 / 0.543 GB, free: 11.39 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)