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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001/0.001, allocations: 180.3 kB / 8.351 MB, free: 0.7227 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.677/1.677, allocations: 194.3 MB / 203.1 MB, free: 12.96 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.001655/0.001655, allocations: 116.1 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1764/0.1764, allocations: 37.92 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.338e-05, allocations: 0 / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3269, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5218/0.8488, allocations: 111.3 MB / 0.542 GB, free: 33.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.8491, allocations: 97.05 kB / 0.5421 GB, free: 33.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07369/0.9228, allocations: 30.24 MB / 0.5717 GB, free: 26.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.9229, allocations: 0 / 0.5717 GB, free: 26.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.372e-05/0.9229, allocations: 22.97 kB / 0.5717 GB, free: 26.78 MB / 378.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.002406/0.9254, allocations: 1.141 MB / 0.5728 GB, free: 25.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.9254, allocations: 7.75 kB / 0.5728 GB, free: 25.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005217/0.926, allocations: 148 kB / 0.5729 GB, free: 25.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001886/0.9279, allocations: 0.9513 MB / 0.5739 GB, free: 25.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.9279, allocations: 26.84 kB / 0.5739 GB, free: 25.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001637/0.9281, allocations: 49.47 kB / 0.5739 GB, free: 25.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001205/0.9293, allocations: 0.7934 MB / 0.5747 GB, free: 25.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.9306, allocations: 0.9775 MB / 0.5757 GB, free: 24.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.9306, allocations: 11.8 kB / 0.5757 GB, free: 24.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.372e-05/0.9307, allocations: 0 / 0.5757 GB, free: 24.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.496e-05/0.9308, allocations: 59.45 kB / 0.5757 GB, free: 24.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004611/0.9354, allocations: 4.171 MB / 0.5798 GB, free: 22.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/0.9361, allocations: 0.5253 MB / 0.5803 GB, free: 22.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.9366, allocations: 332 kB / 0.5806 GB, free: 22.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.9367, allocations: 15.59 kB / 0.5807 GB, free: 22.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.9367, allocations: 38.56 kB / 0.5807 GB, free: 22.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=57): time 2.285e-06/0.9367, allocations: 0 / 0.5807 GB, free: 22.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=62): time 0.003047/0.9398, allocations: 2.232 MB / 0.5829 GB, free: 21.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.9398, allocations: 140.9 kB / 0.583 GB, free: 20.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/0.9403, allocations: 468.5 kB / 0.5835 GB, free: 20.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.9404, allocations: 29.64 kB / 0.5835 GB, free: 20.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.9407, allocations: 476.6 kB / 0.5839 GB, free: 20.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.9408, allocations: 208.8 kB / 0.5841 GB, free: 20.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.9409, allocations: 0 / 0.5841 GB, free: 20.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.941, allocations: 383 kB / 0.5845 GB, free: 19.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.9413, allocations: 238.3 kB / 0.5847 GB, free: 19.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003948/0.9418, allocations: 482.1 kB / 0.5852 GB, free: 19.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.9439, allocations: 0.762 MB / 0.5859 GB, free: 19.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.9439, allocations: 7.953 kB / 0.5859 GB, free: 19.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002271/0.9462, allocations: 1.323 MB / 0.5872 GB, free: 18.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006281/0.9468, allocations: 2.878 MB / 0.59 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.9468, allocations: 7.75 kB / 0.59 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.9482, allocations: 456 kB / 0.5905 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004544/0.9487, allocations: 139.6 kB / 0.5906 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.9516, allocations: 3.993 MB / 0.5945 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005603/0.9522, allocations: 26.88 kB / 0.5945 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.161e-05/0.9522, allocations: 37.7 kB / 0.5946 GB, free: 12.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.428e-06/0.9523, allocations: 7.875 kB / 0.5946 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00211/0.9544, allocations: 1.184 MB / 0.5957 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.9544, allocations: 11.78 kB / 0.5958 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.9557, allocations: 439.5 kB / 0.5962 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.9562, allocations: 138 kB / 0.5963 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007294/0.9635, allocations: 7.143 MB / 0.6033 GB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006402/0.9642, allocations: 23.2 kB / 0.6033 GB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.229e-05/0.9643, allocations: 43.64 kB / 0.6033 GB, free: 6.832 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.0003012/0.9646, allocations: 123.3 kB / 0.6035 GB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009962/0.9656, allocations: 0.7037 MB / 0.6041 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.9657, allocations: 74.06 kB / 0.6042 GB, free: 6.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.9668, allocations: 0.7565 MB / 0.605 GB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.9668, allocations: 11.31 kB / 0.605 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.9668, allocations: 0 / 0.605 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.9668, allocations: 7.734 kB / 0.605 GB, free: 5.734 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.969, allocations: 1.642 MB / 0.6066 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.969, allocations: 0 / 0.6066 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006666/0.9697, allocations: 141.5 kB / 0.6067 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001509/0.9698, allocations: 59.2 kB / 0.6068 GB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.9699, allocations: 15.17 kB / 0.6068 GB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.9712, allocations: 2.646 MB / 0.6094 GB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.9713, allocations: 0 / 0.6094 GB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.9725, allocations: 1.248 MB / 0.6106 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.9728, allocations: 192.3 kB / 0.6108 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.092e-05/0.9729, allocations: 7.984 kB / 0.6108 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.9733, allocations: 15.98 kB / 0.6108 GB, free: 172 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.754e-05/0.9734, allocations: 48.44 kB / 0.6108 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.9734, allocations: 16 kB / 0.6109 GB, free: 108 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004589/0.9739, allocations: 355.2 kB / 0.6112 GB, free: 15.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9739, allocations: 0 / 0.6112 GB, free: 15.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001595/0.9755, allocations: 323.9 kB / 0.6115 GB, free: 15.45 MB / 394.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.002169/0.9777, allocations: 2.043 MB / 0.6135 GB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003317/0.981, allocations: 1.838 MB / 0.6153 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.981, allocations: 3.938 kB / 0.6153 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000633/0.9817, allocations: 0.5069 MB / 0.6158 GB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009017/0.9826, allocations: 167.2 kB / 0.616 GB, free: 10.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/0.9861, allocations: 1.753 MB / 0.6177 GB, free: 8.957 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007509/0.9869, allocations: 1.124 MB / 0.6188 GB, free: 7.801 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008585/0.9877, allocations: 237.7 kB / 0.619 GB, free: 7.566 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/0.9882, allocations: 315.3 kB / 0.6193 GB, free: 7.258 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.9882, allocations: 3.938 kB / 0.6193 GB, free: 7.254 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04923/1.037, allocations: 20.25 MB / 0.6391 GB, free: 2.977 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/1.038, allocations: 136.1 kB / 0.6392 GB, free: 2.777 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.771/3.808, allocations: 7.938 kB / 0.6392 GB, free: 2.77 MB / 410.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)