Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.0009906/0.0009906, allocations: 180.7 kB / 8.131 MB, free: 2.219 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.048/1.048, allocations: 194.2 MB / 202.8 MB, free: 8.723 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.001674/0.001674, allocations: 124.7 kB / 247.7 MB, free: 6.281 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1567/0.1567, allocations: 37.92 MB / 330.5 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1844/0.3411, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07229/0.4134, allocations: 53.23 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2526/0.6661, allocations: 93.56 MB / 0.5241 GB, free: 9.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.6665, allocations: 91.62 kB / 0.5242 GB, free: 9.312 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.02824/0.6947, allocations: 11.6 MB / 0.5355 GB, free: 3.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.6948, allocations: 8 kB / 0.5355 GB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.6949, allocations: 47.88 kB / 0.5356 GB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009759/0.6959, allocations: 0.5618 MB / 0.5361 GB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.419e-05/0.696, allocations: 46.47 kB / 0.5362 GB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.213e-05/0.696, allocations: 23.91 kB / 0.5362 GB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003825/0.6964, allocations: 222.8 kB / 0.5364 GB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004464/0.6969, allocations: 377.2 kB / 0.5368 GB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.6969, allocations: 3.938 kB / 0.5368 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.6969, allocations: 0 / 0.5368 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.697, allocations: 12 kB / 0.5368 GB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.6986, allocations: 1.78 MB / 0.5385 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.6988, allocations: 131.9 kB / 0.5386 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.36e-05/0.6989, allocations: 61.33 kB / 0.5387 GB, free: 456 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.6989, allocations: 0 / 0.5387 GB, free: 456 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.6989, allocations: 42.5 kB / 0.5387 GB, free: 404 kB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.6989, allocations: 0 / 0.5387 GB, free: 404 kB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.001187/0.7001, allocations: 0.7909 MB / 0.5395 GB, free: 15.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.7002, allocations: 114.7 kB / 0.5396 GB, free: 15.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.7004, allocations: 237.7 kB / 0.5398 GB, free: 15.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.7005, allocations: 25.77 kB / 0.5399 GB, free: 15.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.7006, allocations: 220.8 kB / 0.5401 GB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.8e-05/0.7007, allocations: 62.45 kB / 0.5401 GB, free: 14.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.7007, allocations: 0 / 0.5401 GB, free: 14.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.7008, allocations: 352.3 kB / 0.5405 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.701, allocations: 60.94 kB / 0.5405 GB, free: 14.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.7012, allocations: 195.4 kB / 0.5407 GB, free: 14.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.7013, allocations: 91.91 kB / 0.5408 GB, free: 14.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.7013, allocations: 4 kB / 0.5408 GB, free: 14.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003934/0.7017, allocations: 286.4 kB / 0.5411 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.7018, allocations: 4.562 kB / 0.5411 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.7018, allocations: 8 kB / 0.5411 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.7018, allocations: 8 kB / 0.5411 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003366/0.7021, allocations: 85.77 kB / 0.5412 GB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.7022, allocations: 8 kB / 0.5412 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.7024, allocations: 8 kB / 0.5412 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.726e-05/0.7024, allocations: 12 kB / 0.5412 GB, free: 13.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.7025, allocations: 128.5 kB / 0.5413 GB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.978e-05/0.7026, allocations: 31.61 kB / 0.5414 GB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003478/0.7029, allocations: 173 kB / 0.5415 GB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.703, allocations: 0 / 0.5415 GB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.703, allocations: 4 kB / 0.5415 GB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.703, allocations: 7.969 kB / 0.5415 GB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007534/0.7037, allocations: 0.5558 MB / 0.5421 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.7038, allocations: 0 / 0.5421 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.7041, allocations: 55.41 kB / 0.5421 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.7041, allocations: 0 / 0.5421 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.7041, allocations: 4 kB / 0.5421 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.7041, allocations: 0 / 0.5421 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.7041, allocations: 4 kB / 0.5421 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004057/0.7046, allocations: 459.3 kB / 0.5426 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005881/0.7052, allocations: 0.9006 MB / 0.5435 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.488e-05/0.7052, allocations: 104.7 kB / 0.5436 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.7053, allocations: 11.94 kB / 0.5436 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.7055, allocations: 8 kB / 0.5436 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.668e-05/0.7056, allocations: 15.05 kB / 0.5436 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.7056, allocations: 15.42 kB / 0.5436 GB, free: 11.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001424/0.7057, allocations: 174 kB / 0.5438 GB, free: 11.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009617/0.7067, allocations: 71.17 kB / 0.5438 GB, free: 11.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * 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.0001608/0.7069, allocations: 118.6 kB / 0.544 GB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002733/0.7071, allocations: 179.9 kB / 0.5441 GB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.7072, allocations: 4 kB / 0.5441 GB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.7073, allocations: 81.61 kB / 0.5442 GB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004545/0.7077, allocations: 58.86 kB / 0.5443 GB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.709, allocations: 0.6609 MB / 0.5449 GB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.7095, allocations: 0.8622 MB / 0.5457 GB, free: 9.594 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7095, allocations: 0 / 0.5457 GB, free: 9.594 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)