Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.583/1.583, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000916/0.0009161, allocations: 91.42 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1733/0.1733, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.372e-05/2.367e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 56.32 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4428/0.5491, allocations: 117.4 MB / 0.5707 GB, free: 9.297 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/0.5495, allocations: 91.95 kB / 0.5708 GB, free: 9.207 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08294/0.6325, allocations: 30.97 MB / 0.6011 GB, free: 9.934 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.6325, allocations: 0 / 0.6011 GB, free: 9.934 MB / 443.1 MB Notification: Performance of Transformations before backend: time 7.268e-05/0.6326, allocations: 31.92 kB / 0.6011 GB, free: 9.902 MB / 443.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002376/0.635, allocations: 1.154 MB / 0.6022 GB, free: 8.695 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.635, allocations: 12.03 kB / 0.6022 GB, free: 8.684 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004713/0.6355, allocations: 138.6 kB / 0.6024 GB, free: 8.547 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.6376, allocations: 0.9876 MB / 0.6033 GB, free: 7.52 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.6376, allocations: 28 kB / 0.6034 GB, free: 7.492 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.6378, allocations: 59.84 kB / 0.6034 GB, free: 7.434 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001391/0.6392, allocations: 0.8044 MB / 0.6042 GB, free: 6.629 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.6408, allocations: 1 MB / 0.6052 GB, free: 5.562 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/0.6408, allocations: 7.938 kB / 0.6052 GB, free: 5.555 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.015e-05/0.6409, allocations: 4 kB / 0.6052 GB, free: 5.551 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.641, allocations: 65.91 kB / 0.6052 GB, free: 5.484 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005816/0.6469, allocations: 4.386 MB / 0.6095 GB, free: 0.8945 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.6477, allocations: 0.537 MB / 0.6101 GB, free: 336 kB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005565/0.6482, allocations: 348.5 kB / 0.6104 GB, free: 15.98 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.899e-05/0.6483, allocations: 16.5 kB / 0.6104 GB, free: 15.96 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.6483, allocations: 35.12 kB / 0.6104 GB, free: 15.92 MB / 459.1 MB Notification: Performance of pre-optimization done (n=58): time 3.226e-06/0.6484, allocations: 0 / 0.6104 GB, free: 15.92 MB / 459.1 MB Notification: Performance of matching and sorting (n=62): time 0.002876/0.6512, allocations: 1.835 MB / 0.6122 GB, free: 14 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.6513, allocations: 137.1 kB / 0.6124 GB, free: 13.84 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005897/0.6519, allocations: 491.4 kB / 0.6128 GB, free: 13.35 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 7.546e-05/0.652, allocations: 25.7 kB / 0.6129 GB, free: 13.32 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003405/0.6524, allocations: 0.491 MB / 0.6133 GB, free: 12.82 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.6525, allocations: 208.9 kB / 0.6135 GB, free: 12.61 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.6526, allocations: 0 / 0.6135 GB, free: 12.61 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.6528, allocations: 386.7 kB / 0.6139 GB, free: 12.22 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003665/0.6531, allocations: 242.6 kB / 0.6141 GB, free: 11.98 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005596/0.6537, allocations: 489.7 kB / 0.6146 GB, free: 11.39 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002309/0.656, allocations: 0.779 MB / 0.6154 GB, free: 10.6 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.656, allocations: 0 / 0.6154 GB, free: 10.6 MB / 459.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002547/0.6586, allocations: 1.335 MB / 0.6167 GB, free: 9.207 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001398/0.66, allocations: 3.048 MB / 0.6196 GB, free: 5.918 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.66, allocations: 8 kB / 0.6196 GB, free: 5.91 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.6616, allocations: 466.6 kB / 0.6201 GB, free: 5.449 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/0.6621, allocations: 139.7 kB / 0.6202 GB, free: 5.312 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003701/0.6658, allocations: 4.015 MB / 0.6241 GB, free: 1.039 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/0.6664, allocations: 19.98 kB / 0.6242 GB, free: 1.02 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.6665, allocations: 32 kB / 0.6242 GB, free: 0.9883 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.798e-06/0.6665, allocations: 4 kB / 0.6242 GB, free: 0.9844 MB / 459.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002332/0.6688, allocations: 1.197 MB / 0.6254 GB, free: 15.74 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.6688, allocations: 8 kB / 0.6254 GB, free: 15.73 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.6703, allocations: 446.5 kB / 0.6258 GB, free: 15.29 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.6707, allocations: 139.7 kB / 0.6259 GB, free: 15.15 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008114/0.6789, allocations: 7.142 MB / 0.6329 GB, free: 7.645 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006026/0.6795, allocations: 15.98 kB / 0.6329 GB, free: 7.629 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.715e-05/0.6796, allocations: 39.98 kB / 0.633 GB, free: 7.59 MB / 475.1 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" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 66 * 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.0002926/0.6799, allocations: 136.7 kB / 0.6331 GB, free: 7.449 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001097/0.681, allocations: 0.7155 MB / 0.6338 GB, free: 6.707 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.6811, allocations: 79.02 kB / 0.6339 GB, free: 6.629 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.6823, allocations: 0.7516 MB / 0.6346 GB, free: 5.836 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.6824, allocations: 8 kB / 0.6346 GB, free: 5.828 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.6824, allocations: 8 kB / 0.6346 GB, free: 5.82 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.6824, allocations: 7.938 kB / 0.6346 GB, free: 5.812 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.6849, allocations: 1.654 MB / 0.6362 GB, free: 4.07 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.685, allocations: 4 kB / 0.6362 GB, free: 4.066 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006622/0.6856, allocations: 131.8 kB / 0.6364 GB, free: 3.938 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.6858, allocations: 61.83 kB / 0.6364 GB, free: 3.871 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.6859, allocations: 11.98 kB / 0.6364 GB, free: 3.859 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/0.6878, allocations: 2.648 MB / 0.639 GB, free: 0.9766 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6878, allocations: 3.953 kB / 0.639 GB, free: 0.9727 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2835/0.9713, allocations: 1.262 MB / 0.6403 GB, free: 133.7 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/0.9719, allocations: 199.2 kB / 0.6405 GB, free: 133.6 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.972, allocations: 4.906 kB / 0.6405 GB, free: 133.6 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.9725, allocations: 20.41 kB / 0.6405 GB, free: 133.6 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.9726, allocations: 46.09 kB / 0.6405 GB, free: 133.6 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.9727, allocations: 22.78 kB / 0.6405 GB, free: 133.6 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0005989/0.9733, allocations: 368.2 kB / 0.6409 GB, free: 133.5 MB / 475.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.9733, allocations: 0 / 0.6409 GB, free: 133.5 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001968/0.9753, allocations: 324.7 kB / 0.6412 GB, free: 133.5 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 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.002245/0.9775, allocations: 2.141 MB / 0.6433 GB, free: 132.3 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.9811, allocations: 1.868 MB / 0.6451 GB, free: 131.8 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.9811, allocations: 0.8125 kB / 0.6451 GB, free: 131.8 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006715/0.9818, allocations: 0.5145 MB / 0.6456 GB, free: 131.6 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.9828, allocations: 153.3 kB / 0.6458 GB, free: 131.5 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003794/0.9866, allocations: 1.807 MB / 0.6475 GB, free: 131.1 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009151/0.9876, allocations: 1.132 MB / 0.6486 GB, free: 130.4 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.001096/0.9887, allocations: 245.2 kB / 0.6489 GB, free: 130.4 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000477/0.9892, allocations: 334.7 kB / 0.6492 GB, free: 130.4 MB / 475.1 MB Notification: Performance of SimCode: time 2.024e-06/0.9892, allocations: 0 / 0.6492 GB, free: 130.4 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05379/1.043, allocations: 20.83 MB / 0.6695 GB, free: 129.3 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001587/1.043, allocations: 136.6 kB / 0.6697 GB, free: 129.2 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.758/3.801, allocations: 4 kB / 0.6697 GB, free: 129.2 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat does not exist to compare? outputFormat=mat