Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.0009438/0.0009437, allocations: 174.6 kB / 8.347 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.593/1.593, 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.0008613/0.0008614, allocations: 96.03 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.1747/0.1747, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.237e-05/2.242e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1459, allocations: 56.33 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5166/0.6625, allocations: 99.45 MB / 0.5532 GB, free: 11.41 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.6628, allocations: 79.95 kB / 0.5532 GB, free: 11.34 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03397/0.6968, allocations: 12.12 MB / 0.5651 GB, free: 15.1 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6969, allocations: 0 / 0.5651 GB, free: 15.1 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.673e-05/0.6969, allocations: 20 kB / 0.5651 GB, free: 15.08 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001024/0.6979, allocations: 0.6334 MB / 0.5657 GB, free: 14.4 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.698, allocations: 12.03 kB / 0.5657 GB, free: 14.39 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004993/0.6985, allocations: 79.39 kB / 0.5658 GB, free: 14.31 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.7004, allocations: 0.8452 MB / 0.5666 GB, free: 13.42 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.7005, allocations: 16 kB / 0.5666 GB, free: 13.41 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.552e-05/0.7006, allocations: 24 kB / 0.5667 GB, free: 13.38 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005682/0.7011, allocations: 358.5 kB / 0.567 GB, free: 13.03 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007857/0.7019, allocations: 0.5445 MB / 0.5675 GB, free: 12.43 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.702, allocations: 0 / 0.5675 GB, free: 12.43 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.915e-05/0.702, allocations: 4 kB / 0.5675 GB, free: 12.42 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-05/0.7021, allocations: 28.72 kB / 0.5676 GB, free: 12.39 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/0.7049, allocations: 2.784 MB / 0.5703 GB, free: 9.469 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.7052, allocations: 213.6 kB / 0.5705 GB, free: 9.238 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.7054, allocations: 139.8 kB / 0.5706 GB, free: 9.098 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.7055, allocations: 4.562 kB / 0.5706 GB, free: 9.094 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.7055, allocations: 34.56 kB / 0.5707 GB, free: 9.051 MB / 411.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.7055, allocations: 4 kB / 0.5707 GB, free: 9.047 MB / 411.1 MB Notification: Performance of matching and sorting (n=30): time 0.00136/0.7069, allocations: 0.8366 MB / 0.5715 GB, free: 8.16 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.707, allocations: 77.11 kB / 0.5716 GB, free: 8.066 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.7072, allocations: 265 kB / 0.5718 GB, free: 7.805 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.7073, allocations: 33.64 kB / 0.5718 GB, free: 7.766 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.7075, allocations: 271.2 kB / 0.5721 GB, free: 7.492 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.381e-05/0.7076, allocations: 102.5 kB / 0.5722 GB, free: 7.391 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.558e-05/0.7076, allocations: 0 / 0.5722 GB, free: 7.391 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.7078, allocations: 358.8 kB / 0.5725 GB, free: 7.031 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.708, allocations: 133 kB / 0.5727 GB, free: 6.902 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.7084, allocations: 326.7 kB / 0.573 GB, free: 6.492 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.7087, allocations: 203.8 kB / 0.5732 GB, free: 6.293 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.7087, allocations: 0 / 0.5732 GB, free: 6.293 MB / 411.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007279/0.7095, allocations: 493.2 kB / 0.5736 GB, free: 5.805 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.7095, allocations: 8 kB / 0.5737 GB, free: 5.797 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.7095, allocations: 8 kB / 0.5737 GB, free: 5.789 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.7095, allocations: 8 kB / 0.5737 GB, free: 5.781 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.7099, allocations: 111.8 kB / 0.5738 GB, free: 5.672 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.7099, allocations: 15.94 kB / 0.5738 GB, free: 5.656 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.7101, allocations: 11.98 kB / 0.5738 GB, free: 5.645 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.7102, allocations: 24 kB / 0.5738 GB, free: 5.621 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.7103, allocations: 133.5 kB / 0.574 GB, free: 5.484 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004331/0.7107, allocations: 289.2 kB / 0.5742 GB, free: 5.195 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.7108, allocations: 39.47 kB / 0.5743 GB, free: 5.156 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005609/0.7114, allocations: 333.7 kB / 0.5746 GB, free: 4.82 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.7114, allocations: 11.98 kB / 0.5746 GB, free: 4.809 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.7114, allocations: 0 / 0.5746 GB, free: 4.809 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.7114, allocations: 3.984 kB / 0.5746 GB, free: 4.805 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.7126, allocations: 0.806 MB / 0.5754 GB, free: 3.945 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.7126, allocations: 0 / 0.5754 GB, free: 3.945 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/0.7129, allocations: 63.91 kB / 0.5754 GB, free: 3.883 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.7129, allocations: 4 kB / 0.5754 GB, free: 3.879 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.713, allocations: 7.984 kB / 0.5755 GB, free: 3.871 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.713, allocations: 0 / 0.5755 GB, free: 3.871 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.713, allocations: 16.05 kB / 0.5755 GB, free: 3.855 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007666/0.7138, allocations: 0.6105 MB / 0.5761 GB, free: 3.191 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.7138, allocations: 108.8 kB / 0.5762 GB, free: 3.066 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.7139, allocations: 4 kB / 0.5762 GB, free: 3.062 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.7141, allocations: 7.984 kB / 0.5762 GB, free: 3.055 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.7141, allocations: 23.97 kB / 0.5762 GB, free: 3.031 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.7141, allocations: 4 kB / 0.5762 GB, free: 3.027 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001777/0.7143, allocations: 200.6 kB / 0.5764 GB, free: 2.836 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7143, allocations: 0 / 0.5764 GB, free: 2.836 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00044/0.7148, allocations: 95.95 kB / 0.5765 GB, free: 2.742 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 1 * 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.001164/0.716, allocations: 1.45 MB / 0.5779 GB, free: 1.238 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0004858/0.7164, allocations: 337.7 kB / 0.5782 GB, free: 0.9102 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7165, allocations: 3.938 kB / 0.5782 GB, free: 0.9062 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.7167, allocations: 147.8 kB / 0.5784 GB, free: 0.7617 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.717, allocations: 53.14 kB / 0.5784 GB, free: 0.7109 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.7187, allocations: 0.8862 MB / 0.5793 GB, free: 15.77 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.7192, allocations: 0.8707 MB / 0.5801 GB, free: 14.88 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003372/0.7195, allocations: 123.1 kB / 0.5803 GB, free: 14.75 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.7197, allocations: 135.4 kB / 0.5804 GB, free: 14.62 MB / 427.1 MB Notification: Performance of SimCode: time 2.4e-07/0.7197, allocations: 0 / 0.5804 GB, free: 14.62 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.7467, allocations: 6.097 MB / 0.5863 GB, free: 8.531 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.7469, allocations: 146 kB / 0.5865 GB, free: 8.344 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.869, allocations: 0 / 0.5865 GB, free: 8.344 MB / 427.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat does not exist to compare? outputFormat=mat