Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.0009721/0.0009722, allocations: 184 kB / 8.138 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.218/1.218, 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.0008591/0.0008592, allocations: 85.09 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1596/0.1596, allocations: 37.97 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1774/0.337, allocations: 62.44 MB / 410.1 MB, free: 46.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.4324, allocations: 56.32 MB / 466.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.7485, allocations: 112 MB / 0.5649 GB, free: 14.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.7489, allocations: 91.94 kB / 0.565 GB, free: 14.34 MB / 410.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.0746/0.8235, allocations: 26.47 MB / 0.5908 GB, free: 3.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.8235, allocations: 8 kB / 0.5908 GB, free: 3.492 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005207/0.8241, allocations: 110.9 kB / 0.591 GB, free: 3.383 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002066/0.8262, allocations: 0.8478 MB / 0.5918 GB, free: 2.496 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.8263, allocations: 55.7 kB / 0.5918 GB, free: 2.434 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.8264, allocations: 44 kB / 0.5919 GB, free: 2.391 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00121/0.8276, allocations: 0.7028 MB / 0.5926 GB, free: 1.688 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.8289, allocations: 0.8549 MB / 0.5934 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/0.829, allocations: 11.98 kB / 0.5934 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.045e-05/0.829, allocations: 0 / 0.5934 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/0.8291, allocations: 61.28 kB / 0.5935 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005001/0.8341, allocations: 3.648 MB / 0.597 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/0.8346, allocations: 299.4 kB / 0.5973 GB, free: 12.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.8351, allocations: 263.8 kB / 0.5976 GB, free: 12.28 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.8352, allocations: 4 kB / 0.5976 GB, free: 12.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.8352, allocations: 42.42 kB / 0.5976 GB, free: 12.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 4.508e-06/0.8352, allocations: 4 kB / 0.5976 GB, free: 12.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.00842/0.8436, allocations: 3.245 MB / 0.6008 GB, free: 8.809 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.8437, allocations: 119.2 kB / 0.6009 GB, free: 8.668 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005797/0.8443, allocations: 361 kB / 0.6012 GB, free: 8.312 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.591e-05/0.8444, allocations: 25.7 kB / 0.6013 GB, free: 8.281 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.8446, allocations: 354.7 kB / 0.6016 GB, free: 7.926 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.8448, allocations: 181.3 kB / 0.6018 GB, free: 7.746 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.8448, allocations: 0 / 0.6018 GB, free: 7.746 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.845, allocations: 366.7 kB / 0.6021 GB, free: 7.379 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000403/0.8454, allocations: 269.5 kB / 0.6024 GB, free: 7.117 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005409/0.8459, allocations: 0.4888 MB / 0.6029 GB, free: 6.523 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005034/0.8464, allocations: 357 kB / 0.6032 GB, free: 6.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.8464, allocations: 8 kB / 0.6032 GB, free: 6.172 MB / 442.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003434/0.8499, allocations: 1.49 MB / 0.6047 GB, free: 4.598 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.8499, allocations: 4 kB / 0.6047 GB, free: 4.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.85, allocations: 8 kB / 0.6047 GB, free: 4.586 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/0.8518, allocations: 0.5038 MB / 0.6052 GB, free: 4.066 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004672/0.8523, allocations: 115.8 kB / 0.6053 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.863, allocations: 9.218 MB / 0.6143 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006501/0.8637, allocations: 27.94 kB / 0.6143 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.754e-05/0.8637, allocations: 39.97 kB / 0.6143 GB, free: 10.08 MB / 458.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.000267/0.864, allocations: 135.2 kB / 0.6145 GB, free: 9.945 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.8641, allocations: 59.25 kB / 0.6145 GB, free: 9.887 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003334/0.8675, allocations: 1.384 MB / 0.6159 GB, free: 8.426 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.8675, allocations: 8 kB / 0.6159 GB, free: 8.418 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.8675, allocations: 4 kB / 0.6159 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.8675, allocations: 7.984 kB / 0.6159 GB, free: 8.406 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.872, allocations: 2.22 MB / 0.6181 GB, free: 6.055 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.8721, allocations: 0 / 0.6181 GB, free: 6.055 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.8724, allocations: 51.91 kB / 0.6181 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/0.8741, allocations: 491.9 kB / 0.6186 GB, free: 5.508 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.691e-05/0.8742, allocations: 4 kB / 0.6186 GB, free: 5.504 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/0.8846, allocations: 9.036 MB / 0.6274 GB, free: 11.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.679e-06/0.8846, allocations: 11.94 kB / 0.6274 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003967/0.8886, allocations: 1.988 MB / 0.6294 GB, free: 9.758 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00463/0.8933, allocations: 2.8 MB / 0.6321 GB, free: 6.824 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003551/0.8936, allocations: 176.4 kB / 0.6323 GB, free: 6.633 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.8938, allocations: 7.906 kB / 0.6323 GB, free: 6.625 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/0.8942, allocations: 16.05 kB / 0.6323 GB, free: 6.609 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.8943, allocations: 28.45 kB / 0.6323 GB, free: 6.582 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.581e-05/0.8943, allocations: 16 kB / 0.6323 GB, free: 6.566 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.000396/0.8948, allocations: 275.2 kB / 0.6326 GB, free: 6.297 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001889/0.8966, allocations: 200 kB / 0.6328 GB, free: 6.102 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_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,88.9%) 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.0003212/0.897, allocations: 159.6 kB / 0.6329 GB, free: 5.941 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.8994, allocations: 1.318 MB / 0.6342 GB, free: 4.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.8995, allocations: 4.125 kB / 0.6342 GB, free: 4.566 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.9012, allocations: 0.9673 MB / 0.6352 GB, free: 3.551 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007272/0.9019, allocations: 118.1 kB / 0.6353 GB, free: 3.438 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.9048, allocations: 1.28 MB / 0.6365 GB, free: 2.109 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007799/0.9056, allocations: 1.097 MB / 0.6376 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of SimCode: time 7.62e-07/0.9056, allocations: 0 / 0.6376 GB, free: 0.9883 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat does not exist to compare? outputFormat=mat