Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.001208/0.001208, allocations: 185.2 kB / 8.137 MB, free: 2.18 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.04/1.04, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001585/0.001585, allocations: 110.5 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1554/0.1554, allocations: 37.91 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1767/0.3321, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07399/0.4062, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2726/0.6788, allocations: 106.9 MB / 0.5371 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.6791, allocations: 89.45 kB / 0.5372 GB, free: 0.668 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.07125/0.7503, allocations: 26.42 MB / 0.563 GB, free: 10.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.7504, allocations: 11.94 kB / 0.563 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005149/0.7509, allocations: 118.6 kB / 0.5631 GB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00186/0.7528, allocations: 0.8389 MB / 0.5639 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.813e-05/0.7529, allocations: 59.7 kB / 0.564 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.753, allocations: 40 kB / 0.564 GB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001141/0.7541, allocations: 0.7007 MB / 0.5647 GB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.7554, allocations: 0.8643 MB / 0.5655 GB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/0.7554, allocations: 6.75 kB / 0.5655 GB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.7555, allocations: 0 / 0.5655 GB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001008/0.7556, allocations: 54.66 kB / 0.5656 GB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004593/0.7602, allocations: 3.637 MB / 0.5691 GB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.7606, allocations: 303.5 kB / 0.5694 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.7611, allocations: 270.8 kB / 0.5697 GB, free: 4.742 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.7611, allocations: 4 kB / 0.5697 GB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.656e-05/0.7611, allocations: 34.72 kB / 0.5697 GB, free: 4.699 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.994e-06/0.7612, allocations: 0 / 0.5697 GB, free: 4.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.008043/0.7692, allocations: 3.246 MB / 0.5729 GB, free: 1.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.7693, allocations: 111.2 kB / 0.573 GB, free: 1.773 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/0.7697, allocations: 368 kB / 0.5734 GB, free: 1.488 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.7697, allocations: 29.73 kB / 0.5734 GB, free: 1.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.7699, allocations: 350.1 kB / 0.5737 GB, free: 1.141 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.7701, allocations: 182.4 kB / 0.5739 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.7701, allocations: 3.938 kB / 0.5739 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.7703, allocations: 373.6 kB / 0.5743 GB, free: 0.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003672/0.7706, allocations: 269.2 kB / 0.5745 GB, free: 476 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004772/0.7711, allocations: 494.4 kB / 0.575 GB, free: 0 / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004706/0.7716, allocations: 361.8 kB / 0.5753 GB, free: 15.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.7716, allocations: 4 kB / 0.5753 GB, free: 15.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003244/0.7749, allocations: 1.492 MB / 0.5768 GB, free: 14.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.7749, allocations: 4 kB / 0.5768 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.7749, allocations: 8 kB / 0.5768 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00175/0.7767, allocations: 0.5026 MB / 0.5773 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004285/0.7771, allocations: 111.4 kB / 0.5774 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/0.7873, allocations: 9.233 MB / 0.5864 GB, free: 4.703 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006109/0.788, allocations: 19.94 kB / 0.5864 GB, free: 4.684 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/0.788, allocations: 28 kB / 0.5865 GB, free: 4.656 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: machine.motor.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] machine.inverter.Vloss:DUMMY_STATE(unit = "V" nominal = 1000.0 protected = true ) type: Real machine.inverter.vPhasor[2]:DUMMY_STATE() "desired {abs(v), phase(v)}" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {3 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002369/0.7883, allocations: 142 kB / 0.5866 GB, free: 4.512 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.7885, allocations: 59.25 kB / 0.5866 GB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/0.7916, allocations: 1.376 MB / 0.588 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.7916, allocations: 11.91 kB / 0.588 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.7916, allocations: 4 kB / 0.588 GB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.7917, allocations: 4.203 kB / 0.588 GB, free: 2.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004334/0.796, allocations: 2.205 MB / 0.5902 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.796, allocations: 0 / 0.5902 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.7964, allocations: 67.89 kB / 0.5902 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001606/0.798, allocations: 491.8 kB / 0.5907 GB, free: 92 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.281e-05/0.798, allocations: 7.984 kB / 0.5907 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009422/0.8075, allocations: 9.03 MB / 0.5995 GB, free: 6.469 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8075, allocations: 0 / 0.5995 GB, free: 6.469 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003472/0.811, allocations: 1.965 MB / 0.6014 GB, free: 4.379 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004089/0.8151, allocations: 2.75 MB / 0.6041 GB, free: 1.508 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/0.8153, allocations: 180.4 kB / 0.6043 GB, free: 1.312 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.988e-05/0.8154, allocations: 8 kB / 0.6043 GB, free: 1.305 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.8158, allocations: 16.05 kB / 0.6043 GB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.748e-05/0.8159, allocations: 36.36 kB / 0.6044 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.816, allocations: 20.08 kB / 0.6044 GB, free: 1.234 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003183/0.8163, allocations: 275.2 kB / 0.6046 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001541/0.8178, allocations: 200.1 kB / 0.6048 GB, free: 0.7656 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (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 (29): * Single equations (assignments): 23 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002546/0.8181, allocations: 155.1 kB / 0.605 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002151/0.8203, allocations: 1.318 MB / 0.6063 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.8203, allocations: 4.125 kB / 0.6063 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.8218, allocations: 0.9672 MB / 0.6072 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006223/0.8225, allocations: 109.3 kB / 0.6073 GB, free: 14.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.8249, allocations: 1.291 MB / 0.6086 GB, free: 12.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007306/0.8256, allocations: 1.085 MB / 0.6096 GB, free: 11.66 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.8256, allocations: 0 / 0.6096 GB, free: 11.66 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1)