Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.001473/0.001473, allocations: 175.1 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.615/1.615, 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.0009419/0.0009417, allocations: 93.98 kB / 267.5 MB, free: 14.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1657/0.1657, allocations: 37.97 MB / 353.5 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.039e-05/4.06e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 56.32 MB / 474.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4513/0.5598, allocations: 97.61 MB / 0.5584 GB, free: 4.922 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.5601, allocations: 101.5 kB / 0.5584 GB, free: 4.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02543/0.5856, allocations: 9.95 MB / 0.5682 GB, free: 12.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5856, allocations: 0 / 0.5682 GB, free: 12.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.415e-05/0.5857, allocations: 8 kB / 0.5682 GB, free: 12.37 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009103/0.5866, allocations: 0.5882 MB / 0.5687 GB, free: 11.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.5866, allocations: 8.031 kB / 0.5688 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.268e-05/0.5867, allocations: 67.28 kB / 0.5688 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.714e-05/0.5868, allocations: 43.48 kB / 0.5689 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001354/0.5882, allocations: 0.6113 MB / 0.5695 GB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.5882, allocations: 22.44 kB / 0.5695 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-05/0.5883, allocations: 26.69 kB / 0.5695 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.5888, allocations: 327.4 kB / 0.5698 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.5889, allocations: 4 kB / 0.5698 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.891e-05/0.5889, allocations: 11.06 kB / 0.5698 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.5889, allocations: 8 kB / 0.5698 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.5893, allocations: 201.8 kB / 0.57 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.5911, allocations: 1.485 MB / 0.5715 GB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.5915, allocations: 198.7 kB / 0.5717 GB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.5917, allocations: 72.55 kB / 0.5717 GB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.5917, allocations: 0 / 0.5717 GB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.5918, allocations: 41 kB / 0.5718 GB, free: 8.906 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.253e-06/0.5918, allocations: 0 / 0.5718 GB, free: 8.906 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.001138/0.5929, allocations: 0.653 MB / 0.5724 GB, free: 8.266 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.494e-05/0.593, allocations: 132.5 kB / 0.5725 GB, free: 8.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.5933, allocations: 269 kB / 0.5728 GB, free: 7.879 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.5934, allocations: 29.14 kB / 0.5728 GB, free: 7.848 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.5935, allocations: 214.8 kB / 0.573 GB, free: 7.688 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.5936, allocations: 61.55 kB / 0.5731 GB, free: 7.637 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.5936, allocations: 11.41 kB / 0.5731 GB, free: 7.629 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.5937, allocations: 341 kB / 0.5734 GB, free: 7.301 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.377e-05/0.5938, allocations: 49.92 kB / 0.5735 GB, free: 7.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.594, allocations: 148.6 kB / 0.5736 GB, free: 7.098 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.5941, allocations: 67.02 kB / 0.5737 GB, free: 7.051 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5941, allocations: 4 kB / 0.5737 GB, free: 7.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003642/0.5945, allocations: 250.8 kB / 0.5739 GB, free: 6.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.5945, allocations: 11.94 kB / 0.5739 GB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.5945, allocations: 4 kB / 0.5739 GB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.5946, allocations: 11.89 kB / 0.5739 GB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.5949, allocations: 83.89 kB / 0.574 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.5961, allocations: 1.276 MB / 0.5753 GB, free: 5.348 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.5962, allocations: 19.22 kB / 0.5753 GB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.5962, allocations: 11.62 kB / 0.5753 GB, free: 5.324 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.5964, allocations: 124 kB / 0.5754 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.251e-05/0.5964, allocations: 31.62 kB / 0.5755 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.5968, allocations: 187.9 kB / 0.5756 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/0.5968, allocations: 7.953 kB / 0.5756 GB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.5968, allocations: 0 / 0.5756 GB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.5968, allocations: 3.984 kB / 0.5756 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007766/0.5976, allocations: 0.5333 MB / 0.5762 GB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.5976, allocations: 8 kB / 0.5762 GB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.5978, allocations: 35.98 kB / 0.5762 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.5979, allocations: 3.953 kB / 0.5762 GB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.5979, allocations: 11.48 kB / 0.5762 GB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5979, allocations: 0 / 0.5762 GB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5979, allocations: 4 kB / 0.5762 GB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005227/0.5984, allocations: 0.5199 MB / 0.5767 GB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.832e-05/0.5985, allocations: 100.7 kB / 0.5768 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.5986, allocations: 7.875 kB / 0.5768 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.5987, allocations: 3.75 kB / 0.5768 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.5988, allocations: 16.03 kB / 0.5769 GB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.5988, allocations: 7.938 kB / 0.5769 GB, free: 3.816 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002019/0.599, allocations: 212.8 kB / 0.5771 GB, free: 3.645 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.599, allocations: 0 / 0.5771 GB, free: 3.645 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004114/0.5994, allocations: 71.58 kB / 0.5771 GB, free: 3.582 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000978/0.6004, allocations: 1.295 MB / 0.5784 GB, free: 2.312 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000352/0.6008, allocations: 163.6 kB / 0.5786 GB, free: 2.188 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6008, allocations: 0 / 0.5786 GB, free: 2.188 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.6009, allocations: 64.2 kB / 0.5786 GB, free: 2.141 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.6015, allocations: 84.53 kB / 0.5787 GB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.603, allocations: 0.6878 MB / 0.5794 GB, free: 1.402 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.6034, allocations: 0.815 MB / 0.5802 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002069/0.6036, allocations: 58.94 kB / 0.5802 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.6038, allocations: 104.2 kB / 0.5803 GB, free: 496 kB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.6038, allocations: 0 / 0.5803 GB, free: 496 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.6244, allocations: 6.85 MB / 0.587 GB, free: 9.676 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002978/0.6247, allocations: 155.1 kB / 0.5872 GB, free: 9.457 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.784, allocations: 7.875 kB / 0.5872 GB, free: 9.449 MB / 394.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat does not exist to compare? outputFormat=mat