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.001056/0.001056, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.479/1.479, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0008224/0.0008225, allocations: 78.67 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1514/0.1514, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.627e-05/2.629e-05, allocations: 0 / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08488, allocations: 56.32 MB / 474.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.4222, allocations: 118.1 MB / 0.5784 GB, free: 0.875 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.4225, allocations: 92.75 kB / 0.5785 GB, free: 0.832 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08299/0.5055, allocations: 31.29 MB / 0.609 GB, free: 6.258 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5055, allocations: 0 / 0.609 GB, free: 6.258 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.516e-05/0.5056, allocations: 27.94 kB / 0.609 GB, free: 6.23 MB / 410.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.002252/0.5078, allocations: 1.155 MB / 0.6102 GB, free: 5.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.5079, allocations: 16.03 kB / 0.6102 GB, free: 5.074 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.5081, allocations: 149 kB / 0.6103 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004607/0.5086, allocations: 132.1 kB / 0.6105 GB, free: 4.844 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002057/0.5106, allocations: 0.9896 MB / 0.6114 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.031e-05/0.5107, allocations: 61 kB / 0.6115 GB, free: 4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.5109, allocations: 96.72 kB / 0.6116 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.5125, allocations: 1.129 MB / 0.6127 GB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.5125, allocations: 3.938 kB / 0.6127 GB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.706e-05/0.5126, allocations: 40.05 kB / 0.6127 GB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.67e-05/0.5127, allocations: 64.97 kB / 0.6128 GB, free: 3.008 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.5141, allocations: 0.8766 MB / 0.6136 GB, free: 2.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/0.5196, allocations: 4.634 MB / 0.6182 GB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008129/0.5204, allocations: 0.5632 MB / 0.6187 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005353/0.521, allocations: 362.6 kB / 0.6191 GB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.714e-05/0.521, allocations: 12.55 kB / 0.6191 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.5211, allocations: 41.94 kB / 0.6191 GB, free: 13.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 2.475e-06/0.5211, allocations: 4 kB / 0.6191 GB, free: 13.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=62): time 0.003072/0.5242, allocations: 1.965 MB / 0.621 GB, free: 12.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/0.5243, allocations: 141 kB / 0.6212 GB, free: 11.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006445/0.5249, allocations: 0.5721 MB / 0.6217 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.525, allocations: 35.95 kB / 0.6218 GB, free: 11.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.5253, allocations: 498.4 kB / 0.6222 GB, free: 11.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.5255, allocations: 222.2 kB / 0.6224 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.5255, allocations: 20 kB / 0.6225 GB, free: 10.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.5257, allocations: 390.7 kB / 0.6228 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.5261, allocations: 245.9 kB / 0.6231 GB, free: 10.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005546/0.5267, allocations: 0.5041 MB / 0.6236 GB, free: 9.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002276/0.5289, allocations: 0.7879 MB / 0.6243 GB, free: 8.762 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.529, allocations: 0 / 0.6243 GB, free: 8.762 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002647/0.5316, allocations: 1.437 MB / 0.6257 GB, free: 7.273 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001135/0.5328, allocations: 2.968 MB / 0.6286 GB, free: 4.074 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.5328, allocations: 11.98 kB / 0.6286 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.5344, allocations: 469.6 kB / 0.6291 GB, free: 3.598 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005021/0.5349, allocations: 131.8 kB / 0.6292 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003612/0.5385, allocations: 4.084 MB / 0.6332 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/0.5391, allocations: 39.89 kB / 0.6332 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-05/0.5392, allocations: 39.98 kB / 0.6333 GB, free: 15.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.5392, allocations: 4 kB / 0.6333 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002349/0.5415, allocations: 1.302 MB / 0.6346 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.5416, allocations: 8 kB / 0.6346 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.543, allocations: 458.8 kB / 0.635 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.5434, allocations: 135.8 kB / 0.6351 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00864/0.5521, allocations: 7.459 MB / 0.6424 GB, free: 5.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006242/0.5528, allocations: 35.94 kB / 0.6425 GB, free: 5.141 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.5528, allocations: 39.94 kB / 0.6425 GB, free: 5.102 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 65 * 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.000226/0.5531, allocations: 168.9 kB / 0.6427 GB, free: 4.934 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.5532, allocations: 86.95 kB / 0.6427 GB, free: 4.848 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.5545, allocations: 0.8143 MB / 0.6435 GB, free: 3.996 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5546, allocations: 8 kB / 0.6435 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5546, allocations: 0 / 0.6435 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.5546, allocations: 7.984 kB / 0.6435 GB, free: 3.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.5572, allocations: 1.818 MB / 0.6453 GB, free: 2.059 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.5572, allocations: 4 kB / 0.6453 GB, free: 2.055 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000686/0.5579, allocations: 139.7 kB / 0.6455 GB, free: 1.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001583/0.5581, allocations: 53.77 kB / 0.6455 GB, free: 1.859 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.5581, allocations: 19.98 kB / 0.6455 GB, free: 1.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001933/0.5601, allocations: 2.748 MB / 0.6482 GB, free: 14.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5601, allocations: 4.031 kB / 0.6482 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.5618, allocations: 1.328 MB / 0.6495 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.5621, allocations: 200.3 kB / 0.6497 GB, free: 13.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.567e-05/0.5622, allocations: 20 kB / 0.6497 GB, free: 13.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003954/0.5626, allocations: 31.88 kB / 0.6498 GB, free: 13.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.675e-05/0.5627, allocations: 52.39 kB / 0.6498 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.943e-05/0.5628, allocations: 20 kB / 0.6498 GB, free: 13.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000594/0.5634, allocations: 451.1 kB / 0.6503 GB, free: 12.65 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.753e-06/0.5634, allocations: 0 / 0.6503 GB, free: 12.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001352/0.5648, allocations: 391.9 kB / 0.6506 GB, free: 12.27 MB / 458.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 () * 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.002111/0.5669, allocations: 2.203 MB / 0.6528 GB, free: 9.988 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003207/0.5701, allocations: 1.952 MB / 0.6547 GB, free: 7.977 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5701, allocations: 384 / 0.6547 GB, free: 7.977 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.5708, allocations: 0.5432 MB / 0.6552 GB, free: 7.402 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009521/0.5718, allocations: 199 kB / 0.6554 GB, free: 7.207 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.5753, allocations: 1.89 MB / 0.6573 GB, free: 5.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008547/0.5762, allocations: 1.128 MB / 0.6584 GB, free: 4.109 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009285/0.5771, allocations: 274.4 kB / 0.6586 GB, free: 3.836 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004973/0.5777, allocations: 335.3 kB / 0.6589 GB, free: 3.508 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5777, allocations: 0 / 0.6589 GB, free: 3.508 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08978/0.6674, allocations: 23.97 MB / 0.6823 GB, free: 11.54 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.6677, allocations: 197.6 kB / 0.6825 GB, free: 11.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.491, allocations: 3.938 kB / 0.6825 GB, free: 11.3 MB / 490.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