Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",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.0009994/0.0009994, allocations: 181.6 kB / 8.137 MB, free: 2.223 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.062/1.062, allocations: 194.2 MB / 202.8 MB, free: 8.758 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.001711/0.001711, allocations: 119.1 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.1565/0.1565, allocations: 37.91 MB / 330.5 MB, free: 7.004 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1846/0.3412, allocations: 59.35 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07384/0.415, allocations: 53.24 MB / 443.1 MB, free: 24.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2544/0.6695, allocations: 111.3 MB / 0.5415 GB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.6698, allocations: 90.97 kB / 0.5415 GB, free: 12.59 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.08256/0.7523, allocations: 31.19 MB / 0.572 GB, free: 2.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.7524, allocations: 12 kB / 0.572 GB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005428/0.7529, allocations: 134.6 kB / 0.5721 GB, free: 2.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.755, allocations: 0.9502 MB / 0.5731 GB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.546e-05/0.7551, allocations: 28 kB / 0.5731 GB, free: 1.586 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.7552, allocations: 55.89 kB / 0.5731 GB, free: 1.531 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001313/0.7566, allocations: 0.8128 MB / 0.5739 GB, free: 1.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.758, allocations: 0.9921 MB / 0.5749 GB, free: 232 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.758, allocations: 11.53 kB / 0.5749 GB, free: 224 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.527e-05/0.7581, allocations: 4 kB / 0.5749 GB, free: 220 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.79e-05/0.7582, allocations: 57.84 kB / 0.575 GB, free: 164 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005667/0.7639, allocations: 4.183 MB / 0.5791 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.7645, allocations: 397.4 kB / 0.5794 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005214/0.765, allocations: 351.4 kB / 0.5798 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.7651, allocations: 4.5 kB / 0.5798 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.7651, allocations: 41.75 kB / 0.5798 GB, free: 11.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=57): time 1.993e-06/0.7651, allocations: 4 kB / 0.5798 GB, free: 11.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=62): time 0.003435/0.7685, allocations: 2.248 MB / 0.582 GB, free: 10.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.769e-05/0.7686, allocations: 141 kB / 0.5822 GB, free: 9.855 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005387/0.7692, allocations: 467.5 kB / 0.5826 GB, free: 9.496 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.7692, allocations: 25.7 kB / 0.5826 GB, free: 9.465 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002388/0.7695, allocations: 392.5 kB / 0.583 GB, free: 9.117 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000173/0.7697, allocations: 211.7 kB / 0.5832 GB, free: 8.934 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.7697, allocations: 4.031 kB / 0.5832 GB, free: 8.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.7699, allocations: 380 kB / 0.5836 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/0.7703, allocations: 245.9 kB / 0.5838 GB, free: 8.316 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.7708, allocations: 482.5 kB / 0.5843 GB, free: 7.738 MB / 394.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.sm_ctrl.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002543/0.7734, allocations: 0.769 MB / 0.585 GB, free: 6.949 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.7734, allocations: 4 kB / 0.585 GB, free: 6.945 MB / 394.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002727/0.7761, allocations: 1.336 MB / 0.5863 GB, free: 5.559 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001092/0.7772, allocations: 2.87 MB / 0.5891 GB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.7773, allocations: 8 kB / 0.5891 GB, free: 2.453 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/0.7789, allocations: 457.7 kB / 0.5896 GB, free: 2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005236/0.7795, allocations: 127.8 kB / 0.5897 GB, free: 1.875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.7835, allocations: 4.036 MB / 0.5936 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000536/0.784, allocations: 19.98 kB / 0.5936 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.7841, allocations: 48.03 kB / 0.5937 GB, free: 13.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.7841, allocations: 4 kB / 0.5937 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002531/0.7867, allocations: 1.182 MB / 0.5949 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.7867, allocations: 8 kB / 0.5949 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/0.7883, allocations: 434.4 kB / 0.5953 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/0.7888, allocations: 143.7 kB / 0.5954 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00833/0.7971, allocations: 6.792 MB / 0.602 GB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.7977, allocations: 31.98 kB / 0.6021 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.7978, allocations: 36 kB / 0.6021 GB, free: 4.48 MB / 410.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.sm_ctrl.rotor.w = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] sm_ctrl.motor.w_el:VARIABLE(unit = "rad/s" stateSelect=StateSelect.prefer ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (67): * Single equations (assignments): 64 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002682/0.7981, allocations: 128.7 kB / 0.6022 GB, free: 4.348 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.7982, allocations: 71.09 kB / 0.6023 GB, free: 4.277 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.7995, allocations: 0.7726 MB / 0.6031 GB, free: 3.473 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.7995, allocations: 8 kB / 0.6031 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.7995, allocations: 0 / 0.6031 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.7995, allocations: 7.984 kB / 0.6031 GB, free: 3.457 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002603/0.8022, allocations: 1.668 MB / 0.6047 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.8022, allocations: 4 kB / 0.6047 GB, free: 1.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007322/0.8029, allocations: 127.9 kB / 0.6048 GB, free: 1.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001623/0.8031, allocations: 57.72 kB / 0.6049 GB, free: 1.508 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.078e-05/0.8031, allocations: 11.98 kB / 0.6049 GB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.8049, allocations: 2.639 MB / 0.6075 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.8049, allocations: 0 / 0.6075 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001557/0.8065, allocations: 1.268 MB / 0.6087 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002057/0.8085, allocations: 1.996 MB / 0.6107 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.8088, allocations: 200.1 kB / 0.6108 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.809, allocations: 7.984 kB / 0.6109 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004237/0.8094, allocations: 27.92 kB / 0.6109 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.564e-05/0.8095, allocations: 28.61 kB / 0.6109 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.8095, allocations: 23.89 kB / 0.6109 GB, free: 10.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004059/0.81, allocations: 351.2 kB / 0.6113 GB, free: 10.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002572/0.8125, allocations: 324 kB / 0.6116 GB, free: 10.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002802/0.8128, allocations: 167.1 kB / 0.6117 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003194/0.816, allocations: 1.787 MB / 0.6135 GB, free: 8.266 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.816, allocations: 0 / 0.6135 GB, free: 8.266 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.8167, allocations: 0.5073 MB / 0.614 GB, free: 7.738 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.8174, allocations: 141.7 kB / 0.6141 GB, free: 7.605 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.8205, allocations: 1.61 MB / 0.6157 GB, free: 5.953 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009043/0.8214, allocations: 1.169 MB / 0.6168 GB, free: 4.754 MB / 426.7 MB Notification: Performance of SimCode: time 3.5e-07/0.8214, allocations: 0 / 0.6168 GB, free: 4.754 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)