Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 185.7 kB / 8.135 MB, free: 2.219 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.197/1.197, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0009083/0.0009084, allocations: 96.22 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1701/0.1701, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2001/0.3703, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.4735, allocations: 56.33 MB / 466.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3611/0.8347, allocations: 121.3 MB / 0.574 GB, free: 5.109 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.8349, allocations: 95.94 kB / 0.5741 GB, free: 5.016 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/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.1-master/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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.1029/0.9378, allocations: 36.57 MB / 0.6098 GB, free: 52 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.9379, allocations: 8 kB / 0.6098 GB, free: 44 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001172/0.9391, allocations: 162.3 kB / 0.6099 GB, free: 15.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003917/0.943, allocations: 1.284 MB / 0.6112 GB, free: 14.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.9433, allocations: 155.3 kB / 0.6113 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005152/0.9438, allocations: 79.89 kB / 0.6114 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002797/0.9466, allocations: 1.196 MB / 0.6126 GB, free: 13.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.9498, allocations: 1.58 MB / 0.6141 GB, free: 11.41 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.761e-05/0.9498, allocations: 8 kB / 0.6141 GB, free: 11.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001836/0.95, allocations: 0 / 0.6141 GB, free: 11.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.9502, allocations: 81.88 kB / 0.6142 GB, free: 11.32 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009658/0.9599, allocations: 6.09 MB / 0.6202 GB, free: 4.996 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.961, allocations: 0.6618 MB / 0.6208 GB, free: 4.312 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008953/0.9619, allocations: 0.5251 MB / 0.6213 GB, free: 3.781 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.854e-05/0.962, allocations: 9.359 kB / 0.6213 GB, free: 3.773 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.9632, allocations: 0.6407 MB / 0.6219 GB, free: 3.109 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 5.21e-06/0.9633, allocations: 0 / 0.6219 GB, free: 3.109 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.005501/0.9688, allocations: 2.609 MB / 0.6245 GB, free: 428 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/0.9689, allocations: 153.2 kB / 0.6246 GB, free: 244 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000849/0.9697, allocations: 0.5543 MB / 0.6252 GB, free: 15.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-05/0.9698, allocations: 45.69 kB / 0.6252 GB, free: 15.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000449/0.9703, allocations: 498.3 kB / 0.6257 GB, free: 15.13 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002965/0.9706, allocations: 291.8 kB / 0.626 GB, free: 14.84 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.676e-05/0.9707, allocations: 4 kB / 0.626 GB, free: 14.84 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.9709, allocations: 406.8 kB / 0.6264 GB, free: 14.43 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008914/0.9718, allocations: 0.5375 MB / 0.6269 GB, free: 13.89 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.9729, allocations: 0.8488 MB / 0.6277 GB, free: 12.9 MB / 474.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.00479/0.9777, allocations: 1.926 MB / 0.6296 GB, free: 10.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.9777, allocations: 4 kB / 0.6296 GB, free: 10.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003958/0.9817, allocations: 2 MB / 0.6316 GB, free: 8.918 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002137/0.9838, allocations: 4 MB / 0.6355 GB, free: 4.594 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.49e-05/0.9839, allocations: 12 kB / 0.6355 GB, free: 4.582 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002227/0.9861, allocations: 0.7845 MB / 0.6362 GB, free: 3.785 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007046/0.9868, allocations: 167.7 kB / 0.6364 GB, free: 3.621 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003738/0.9906, allocations: 3.31 MB / 0.6396 GB, free: 168 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000938/0.9915, allocations: 63.86 kB / 0.6397 GB, free: 104 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/0.9917, allocations: 75.95 kB / 0.6398 GB, free: 28 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.256e-06/0.9917, allocations: 4 kB / 0.6398 GB, free: 24 kB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1897/1.181, allocations: 1.865 MB / 0.6416 GB, free: 163.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/1.182, allocations: 14.03 kB / 0.6416 GB, free: 163.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001918/1.183, allocations: 0.7592 MB / 0.6424 GB, free: 163.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006843/1.184, allocations: 169.2 kB / 0.6425 GB, free: 163.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002698/1.187, allocations: 3.207 MB / 0.6456 GB, free: 162.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008723/1.188, allocations: 56.41 kB / 0.6457 GB, free: 162.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/1.188, allocations: 77.27 kB / 0.6458 GB, free: 162.1 MB / 474.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" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 29 (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],PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 99 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.0003955/1.188, allocations: 177 kB / 0.6459 GB, free: 162 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/1.189, allocations: 92.33 kB / 0.646 GB, free: 162 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/1.19, allocations: 1.142 MB / 0.6471 GB, free: 161.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.292e-05/1.19, allocations: 13.94 kB / 0.6472 GB, free: 161.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/1.19, allocations: 5.312 kB / 0.6472 GB, free: 161.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/1.19, allocations: 14.19 kB / 0.6472 GB, free: 161.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/1.194, allocations: 2.408 MB / 0.6495 GB, free: 161.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/1.194, allocations: 0 / 0.6495 GB, free: 161.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007656/1.195, allocations: 148.3 kB / 0.6497 GB, free: 161.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001572/1.195, allocations: 55.81 kB / 0.6497 GB, free: 161.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/1.195, allocations: 15.09 kB / 0.6497 GB, free: 161.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001377/1.196, allocations: 2.638 MB / 0.6523 GB, free: 158.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.196, allocations: 5.062 kB / 0.6523 GB, free: 158.9 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002194/1.198, allocations: 1.861 MB / 0.6541 GB, free: 158.6 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002801/1.201, allocations: 2.872 MB / 0.6569 GB, free: 157.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/1.202, allocations: 279.6 kB / 0.6572 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/1.202, allocations: 85.86 kB / 0.6573 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008795/1.203, allocations: 107.7 kB / 0.6574 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/1.203, allocations: 54.33 kB / 0.6574 GB, free: 157.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.964e-05/1.203, allocations: 33.94 kB / 0.6575 GB, free: 157.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004891/1.203, allocations: 418.2 kB / 0.6579 GB, free: 157.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002801/1.206, allocations: 427.1 kB / 0.6583 GB, free: 157.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,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.0004442/1.207, allocations: 229.3 kB / 0.6585 GB, free: 157.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003784/1.211, allocations: 2.491 MB / 0.6609 GB, free: 157.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.211, allocations: 0 / 0.6609 GB, free: 157.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008501/1.211, allocations: 0.7188 MB / 0.6616 GB, free: 157.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009651/1.212, allocations: 153.2 kB / 0.6618 GB, free: 157.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/1.217, allocations: 2.109 MB / 0.6638 GB, free: 156.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/1.218, allocations: 1.338 MB / 0.6651 GB, free: 156 MB / 474.7 MB Notification: Performance of SimCode: time 2.164e-06/1.218, allocations: 0 / 0.6651 GB, free: 156 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrl_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrl.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)