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.0009805/0.0009805, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.23/1.23, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008414/0.0008414, allocations: 96.66 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1582/0.1582, allocations: 38.07 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002992, allocations: 8 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 56.32 MB / 480.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.41, allocations: 118.2 MB / 0.5846 GB, free: 168 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.4103, allocations: 95.95 kB / 0.5847 GB, free: 72 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08021/0.4905, allocations: 31.31 MB / 0.6152 GB, free: 444 kB / 442.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4905, allocations: 0 / 0.6152 GB, free: 444 kB / 442.7 MB Notification: Performance of Transformations before backend: time 7.59e-05/0.4906, allocations: 27.94 kB / 0.6153 GB, free: 416 kB / 442.7 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.002778/0.4934, allocations: 1.278 MB / 0.6165 GB, free: 15.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.4935, allocations: 8.031 kB / 0.6165 GB, free: 15.07 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002466/0.4937, allocations: 135.6 kB / 0.6167 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000509/0.4942, allocations: 138.6 kB / 0.6168 GB, free: 14.79 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.4965, allocations: 0.9993 MB / 0.6178 GB, free: 13.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.138e-05/0.4966, allocations: 69.98 kB / 0.6178 GB, free: 13.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.4968, allocations: 95.84 kB / 0.6179 GB, free: 13.59 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.4985, allocations: 1.164 MB / 0.6191 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.4986, allocations: 0 / 0.6191 GB, free: 12.35 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.694e-05/0.4987, allocations: 40 kB / 0.6191 GB, free: 12.31 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/0.4988, allocations: 61.97 kB / 0.6192 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.5004, allocations: 0.9329 MB / 0.6201 GB, free: 11.32 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005838/0.5063, allocations: 4.652 MB / 0.6246 GB, free: 6.434 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.5073, allocations: 0.6034 MB / 0.6252 GB, free: 5.797 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/0.5073, allocations: 17.08 kB / 0.6252 GB, free: 5.781 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.5074, allocations: 43.06 kB / 0.6253 GB, free: 5.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 2.585e-06/0.5074, allocations: 0 / 0.6253 GB, free: 5.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=62): time 0.004771/0.5122, allocations: 2.573 MB / 0.6278 GB, free: 3.043 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.543e-05/0.5123, allocations: 137.1 kB / 0.6279 GB, free: 2.879 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007831/0.513, allocations: 0.5778 MB / 0.6285 GB, free: 2.297 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.919e-05/0.5131, allocations: 41.7 kB / 0.6285 GB, free: 2.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.5134, allocations: 486.9 kB / 0.629 GB, free: 1.766 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.5136, allocations: 220.8 kB / 0.6292 GB, free: 1.547 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.5137, allocations: 20 kB / 0.6292 GB, free: 1.527 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5138, allocations: 386.8 kB / 0.6296 GB, free: 1.141 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004598/0.5143, allocations: 273.8 kB / 0.6298 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005965/0.5149, allocations: 0.5196 MB / 0.6303 GB, free: 244 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.5177, allocations: 0.838 MB / 0.6312 GB, free: 15.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.5177, allocations: 7.953 kB / 0.6312 GB, free: 15.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003308/0.5211, allocations: 1.471 MB / 0.6326 GB, free: 13.85 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001085/0.5222, allocations: 2.976 MB / 0.6355 GB, free: 10.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.5222, allocations: 12 kB / 0.6355 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.5241, allocations: 488.6 kB / 0.636 GB, free: 10.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.5248, allocations: 143.8 kB / 0.6361 GB, free: 10.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/0.5288, allocations: 4.046 MB / 0.6401 GB, free: 5.664 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006678/0.5295, allocations: 48.23 kB / 0.6401 GB, free: 5.617 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.5295, allocations: 35.98 kB / 0.6401 GB, free: 5.582 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.665e-06/0.5295, allocations: 0 / 0.6401 GB, free: 5.582 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002369/0.5319, allocations: 1.31 MB / 0.6414 GB, free: 4.227 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.5319, allocations: 8 kB / 0.6414 GB, free: 4.219 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.5333, allocations: 446.5 kB / 0.6419 GB, free: 3.773 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.5338, allocations: 139.8 kB / 0.642 GB, free: 3.637 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2033/0.7371, allocations: 7.561 MB / 0.6494 GB, free: 129.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006738/0.7378, allocations: 39.31 kB / 0.6494 GB, free: 129.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.7379, allocations: 38.48 kB / 0.6495 GB, free: 129.5 MB / 474.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. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked 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%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006377/0.7385, allocations: 400.9 kB / 0.6498 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.7386, allocations: 80.5 kB / 0.6499 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.74, allocations: 0.8458 MB / 0.6507 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.7401, allocations: 11.86 kB / 0.6507 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.7401, allocations: 3.844 kB / 0.6508 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.7401, allocations: 2.812 kB / 0.6508 GB, free: 129.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/0.7428, allocations: 1.845 MB / 0.6526 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.7429, allocations: 1.5 kB / 0.6526 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006684/0.7435, allocations: 143.3 kB / 0.6527 GB, free: 128.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001215/0.7437, allocations: 42.09 kB / 0.6527 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/0.7437, allocations: 18.36 kB / 0.6528 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.7449, allocations: 2.676 MB / 0.6554 GB, free: 126.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7449, allocations: 1.312 kB / 0.6554 GB, free: 126.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.7466, allocations: 1.371 MB / 0.6567 GB, free: 125.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002914/0.747, allocations: 217.8 kB / 0.6569 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.548e-05/0.747, allocations: 17.05 kB / 0.6569 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003975/0.7474, allocations: 30.38 kB / 0.657 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.7476, allocations: 40.72 kB / 0.657 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.7476, allocations: 20.3 kB / 0.657 GB, free: 125.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005529/0.7482, allocations: 460.5 kB / 0.6575 GB, free: 125.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.7482, allocations: 0 / 0.6575 GB, free: 125.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001564/0.7497, allocations: 377.7 kB / 0.6578 GB, free: 125.4 MB / 474.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002136/0.7519, allocations: 2.262 MB / 0.66 GB, free: 124.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003417/0.7553, allocations: 2.005 MB / 0.662 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7553, allocations: 0 / 0.662 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006942/0.756, allocations: 0.5546 MB / 0.6625 GB, free: 123.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008725/0.7569, allocations: 200.6 kB / 0.6627 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.7672, allocations: 11.3 MB / 0.6737 GB, free: 116 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007831/0.7681, allocations: 1.13 MB / 0.6749 GB, free: 115.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007892/0.7689, allocations: 204.2 kB / 0.675 GB, free: 115.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.7692, allocations: 351 kB / 0.6754 GB, free: 115 MB / 474.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7693, allocations: 8.469 kB / 0.6754 GB, free: 115 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.8038, allocations: 22.75 MB / 0.6976 GB, free: 113.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/0.804, allocations: 218.3 kB / 0.6978 GB, free: 113.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/3.28, allocations: 0 / 0.6978 GB, free: 113.1 MB / 474.7 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