Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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_ctrl,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",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.001275/0.001275, allocations: 181 kB / 8.133 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.04/1.04, allocations: 194.2 MB / 202.8 MB, free: 8.75 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.001851/0.001851, allocations: 124 kB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1564/0.1564, allocations: 37.91 MB / 330.5 MB, free: 7.004 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1808/0.3373, allocations: 59.35 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07043/0.4077, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2494/0.6572, allocations: 115.3 MB / 0.5454 GB, free: 8.352 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.6575, allocations: 95.7 kB / 0.5455 GB, free: 8.305 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo:17:7-17:46:writable] Error: Variable sm_ctrl.inverter.modulator.m not found in scope PowerSystems.AC3ph.Drives.SM_ctrl$sm_ctrl.Inverter$sm_ctrl$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo:20:7-20:46:writable] Error: Variable sm_ctrl.inverter.modulator.m not found in scope PowerSystems.AC3ph.Drives.SM_ctrl$sm_ctrl.Inverter$sm_ctrl$inverter.Modulator.$for loop scope$. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.09032/0.7478, allocations: 35.79 MB / 0.5804 GB, free: 10.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.7478, allocations: 12 kB / 0.5804 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006462/0.7485, allocations: 174.2 kB / 0.5806 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003298/0.7518, allocations: 1.256 MB / 0.5818 GB, free: 8.996 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.752, allocations: 158.1 kB / 0.582 GB, free: 8.828 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003349/0.7524, allocations: 79.33 kB / 0.582 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002285/0.7547, allocations: 1.181 MB / 0.5832 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002797/0.7575, allocations: 1.551 MB / 0.5847 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.214e-05/0.7575, allocations: 7.938 kB / 0.5847 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.7577, allocations: 4 kB / 0.5847 GB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.7578, allocations: 78.94 kB / 0.5848 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007537/0.7654, allocations: 5.874 MB / 0.5905 GB, free: 1.375 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008519/0.7663, allocations: 0.6427 MB / 0.5912 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.767, allocations: 0.5257 MB / 0.5917 GB, free: 184 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.231e-05/0.7671, allocations: 13.34 kB / 0.5917 GB, free: 172 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008319/0.7679, allocations: 0.633 MB / 0.5923 GB, free: 15.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=87): time 2.815e-06/0.7679, allocations: 0 / 0.5923 GB, free: 15.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=92): time 0.004911/0.7728, allocations: 3.182 MB / 0.5954 GB, free: 12.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.191e-05/0.7729, allocations: 157.1 kB / 0.5956 GB, free: 12.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.7736, allocations: 0.5346 MB / 0.5961 GB, free: 11.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.086e-05/0.7736, allocations: 45.69 kB / 0.5961 GB, free: 11.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000307/0.774, allocations: 470.5 kB / 0.5966 GB, free: 10.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.7742, allocations: 299.8 kB / 0.5969 GB, free: 10.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/0.7743, allocations: 0 / 0.5969 GB, free: 10.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.7745, allocations: 402.8 kB / 0.5972 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006916/0.7752, allocations: 0.5297 MB / 0.5978 GB, free: 9.742 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008505/0.776, allocations: 0.8426 MB / 0.5986 GB, free: 8.758 MB / 410.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.004308/0.7803, allocations: 1.918 MB / 0.6005 GB, free: 6.812 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.7804, allocations: 4 kB / 0.6005 GB, free: 6.809 MB / 410.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003393/0.7838, allocations: 2.038 MB / 0.6025 GB, free: 4.742 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001055/0.7848, allocations: 3.825 MB / 0.6062 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.7849, allocations: 12 kB / 0.6062 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001931/0.7868, allocations: 0.7681 MB / 0.607 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/0.7874, allocations: 167.7 kB / 0.6071 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/0.7906, allocations: 3.295 MB / 0.6103 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007614/0.7913, allocations: 67.89 kB / 0.6104 GB, free: 12.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.7915, allocations: 75.89 kB / 0.6105 GB, free: 12.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.396e-06/0.7915, allocations: 4 kB / 0.6105 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003099/0.7946, allocations: 1.874 MB / 0.6123 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.7946, allocations: 8 kB / 0.6123 GB, free: 10.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001857/0.7965, allocations: 0.7609 MB / 0.6131 GB, free: 9.395 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005984/0.7971, allocations: 167.7 kB / 0.6132 GB, free: 9.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/0.8001, allocations: 3.186 MB / 0.6163 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008127/0.8009, allocations: 56.03 kB / 0.6164 GB, free: 5.852 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.8011, allocations: 67.95 kB / 0.6164 GB, free: 5.785 MB / 426.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.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] 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: 44 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 98 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {3 29} Notification: Performance of prepare postOptimizeDAE: time 0.000365/0.8014, allocations: 181.2 kB / 0.6166 GB, free: 5.605 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.8016, allocations: 86.95 kB / 0.6167 GB, free: 5.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/0.8035, allocations: 1.135 MB / 0.6178 GB, free: 4.348 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.567e-05/0.8035, allocations: 19.98 kB / 0.6178 GB, free: 4.328 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.8035, allocations: 0 / 0.6178 GB, free: 4.328 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.8035, allocations: 7.984 kB / 0.6178 GB, free: 4.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/0.8071, allocations: 2.409 MB / 0.6202 GB, free: 1.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.8072, allocations: 4 kB / 0.6202 GB, free: 1.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.8079, allocations: 143.9 kB / 0.6203 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/0.8081, allocations: 61.59 kB / 0.6204 GB, free: 1.613 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-05/0.8082, allocations: 19.91 kB / 0.6204 GB, free: 1.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001784/0.81, allocations: 2.629 MB / 0.623 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.81, allocations: 3.906 kB / 0.623 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002336/0.8124, allocations: 1.83 MB / 0.6248 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003177/0.8155, allocations: 2.828 MB / 0.6275 GB, free: 9.953 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004596/0.816, allocations: 279.8 kB / 0.6278 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.8163, allocations: 83.95 kB / 0.6279 GB, free: 9.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008745/0.8172, allocations: 107.9 kB / 0.628 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.8173, allocations: 44.7 kB / 0.628 GB, free: 9.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.296e-05/0.8174, allocations: 31.98 kB / 0.628 GB, free: 9.398 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004981/0.8179, allocations: 407.1 kB / 0.6284 GB, free: 9.008 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002739/0.8206, allocations: 427.8 kB / 0.6288 GB, free: 8.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 70 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0004553/0.8211, allocations: 231.4 kB / 0.6291 GB, free: 8.355 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004233/0.8253, allocations: 2.47 MB / 0.6315 GB, free: 5.855 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.8254, allocations: 1.812 kB / 0.6315 GB, free: 5.855 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.8264, allocations: 0.7171 MB / 0.6322 GB, free: 5.117 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008977/0.8273, allocations: 138.4 kB / 0.6323 GB, free: 4.984 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00403/0.8314, allocations: 2.077 MB / 0.6343 GB, free: 2.852 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/0.8325, allocations: 1.321 MB / 0.6356 GB, free: 1.504 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/0.8326, allocations: 0 / 0.6356 GB, free: 1.504 MB / 442.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrl.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)