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.000957/0.000957, allocations: 181.4 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.253/1.253, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.0008154/0.0008155, allocations: 89.88 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1601/0.1601, allocations: 38.07 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002819/0.0002819, allocations: 12 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 56.31 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.3706, allocations: 100.2 MB / 0.567 GB, free: 2.184 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.3709, allocations: 83.95 kB / 0.5671 GB, free: 2.102 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03313/0.404, allocations: 12.23 MB / 0.579 GB, free: 5.734 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4041, allocations: 0 / 0.579 GB, free: 5.734 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.149e-05/0.4041, allocations: 12 kB / 0.579 GB, free: 5.723 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001376/0.4055, allocations: 0.692 MB / 0.5797 GB, free: 4.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.4056, allocations: 8.031 kB / 0.5797 GB, free: 4.973 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001653/0.4057, allocations: 78.53 kB / 0.5798 GB, free: 4.887 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005357/0.4063, allocations: 87.38 kB / 0.5799 GB, free: 4.801 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.4085, allocations: 0.845 MB / 0.5807 GB, free: 3.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.4086, allocations: 40.94 kB / 0.5808 GB, free: 3.871 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-05/0.4087, allocations: 40 kB / 0.5808 GB, free: 3.832 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008705/0.4095, allocations: 0.6014 MB / 0.5814 GB, free: 3.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.4096, allocations: 7.938 kB / 0.5814 GB, free: 3.156 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.4096, allocations: 16 kB / 0.5814 GB, free: 3.141 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.382e-05/0.4097, allocations: 25 kB / 0.5814 GB, free: 3.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.4104, allocations: 459.4 kB / 0.5819 GB, free: 2.668 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003159/0.4135, allocations: 2.875 MB / 0.5847 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003222/0.4139, allocations: 225.2 kB / 0.5849 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.4139, allocations: 4.062 kB / 0.5849 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.4139, allocations: 34.78 kB / 0.5849 GB, free: 15.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.515e-06/0.414, allocations: 3.938 kB / 0.5849 GB, free: 15.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=30): time 0.001581/0.4155, allocations: 1.052 MB / 0.586 GB, free: 14.23 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.4156, allocations: 81.11 kB / 0.586 GB, free: 14.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/0.4159, allocations: 287.5 kB / 0.5863 GB, free: 13.84 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.4159, allocations: 37.64 kB / 0.5863 GB, free: 13.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.4161, allocations: 263.3 kB / 0.5866 GB, free: 13.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.305e-05/0.4162, allocations: 114.4 kB / 0.5867 GB, free: 13.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.748e-05/0.4162, allocations: 12.12 kB / 0.5867 GB, free: 13.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4163, allocations: 350.8 kB / 0.5871 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002321/0.4165, allocations: 141 kB / 0.5872 GB, free: 12.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003103/0.4169, allocations: 348.2 kB / 0.5875 GB, free: 12.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.4172, allocations: 211.8 kB / 0.5877 GB, free: 12.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4172, allocations: 8 kB / 0.5877 GB, free: 12.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007212/0.4179, allocations: 0.5244 MB / 0.5882 GB, free: 11.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4179, allocations: 8 kB / 0.5882 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.418, allocations: 4 kB / 0.5882 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.418, allocations: 15.98 kB / 0.5883 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.4184, allocations: 111.8 kB / 0.5884 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/0.4184, allocations: 15.94 kB / 0.5884 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.4187, allocations: 28.36 kB / 0.5884 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.4187, allocations: 24 kB / 0.5884 GB, free: 11.54 MB / 426.7 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 () * Number of clocked 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.0002293/0.4189, allocations: 217.5 kB / 0.5886 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.419, allocations: 31.62 kB / 0.5887 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005485/0.4196, allocations: 349.4 kB / 0.589 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.4196, allocations: 8 kB / 0.589 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4196, allocations: 0 / 0.589 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4196, allocations: 3.984 kB / 0.589 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.4209, allocations: 0.8794 MB / 0.5899 GB, free: 9.984 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.421, allocations: 4 kB / 0.5899 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.4213, allocations: 63.84 kB / 0.5899 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4213, allocations: 0 / 0.5899 GB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.4213, allocations: 15.92 kB / 0.59 GB, free: 9.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.4213, allocations: 4 kB / 0.59 GB, free: 9.898 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4213, allocations: 8.047 kB / 0.59 GB, free: 9.891 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007495/0.4221, allocations: 0.6511 MB / 0.5906 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.4222, allocations: 104.8 kB / 0.5907 GB, free: 9.066 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.048e-05/0.4223, allocations: 11.98 kB / 0.5907 GB, free: 9.055 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.4224, allocations: 15.98 kB / 0.5907 GB, free: 9.039 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.4225, allocations: 19.97 kB / 0.5908 GB, free: 9.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.4225, allocations: 8 kB / 0.5908 GB, free: 9.012 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001937/0.4227, allocations: 219 kB / 0.591 GB, free: 8.801 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4227, allocations: 4 kB / 0.591 GB, free: 8.797 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000478/0.4232, allocations: 108 kB / 0.5911 GB, free: 8.691 MB / 426.7 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 () * Number of clocked 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.00111/0.4243, allocations: 1.469 MB / 0.5925 GB, free: 7.168 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005675/0.4249, allocations: 376.8 kB / 0.5929 GB, free: 6.801 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4249, allocations: 0 / 0.5929 GB, free: 6.801 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.4251, allocations: 147.8 kB / 0.593 GB, free: 6.656 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003614/0.4255, allocations: 53.02 kB / 0.5931 GB, free: 6.605 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.4302, allocations: 7.031 MB / 0.5999 GB, free: 15.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.4306, allocations: 0.867 MB / 0.6008 GB, free: 14.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.4309, allocations: 123.2 kB / 0.6009 GB, free: 14.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.4311, allocations: 131.4 kB / 0.601 GB, free: 14.23 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4311, allocations: 4 kB / 0.601 GB, free: 14.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.4504, allocations: 6.624 MB / 0.6075 GB, free: 7.656 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.4506, allocations: 192.7 kB / 0.6077 GB, free: 7.414 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.278, allocations: 0 / 0.6077 GB, free: 7.414 MB / 442.7 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