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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009947/0.0009947, allocations: 88.39 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 223.3 MB / 241.2 MB, free: 5.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4515/0.4515, allocations: 38.09 MB / 330.4 MB, free: 14.04 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.0004167, allocations: 11.98 kB / 400.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3651, allocations: 59.15 MB / 459.3 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004987/0.3701, allocations: 4.459 MB / 463.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002559/0.3727, allocations: 1.514 MB / 465.3 MB, free: 26.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.373, allocations: 26.25 kB / 465.3 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.3733, allocations: 76.66 kB / 465.4 MB, free: 26.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006738/0.374, allocations: 253.2 kB / 465.6 MB, free: 25.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007887/0.3748, allocations: 234.4 kB / 465.9 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000861/0.3756, allocations: 0.6385 MB / 466.5 MB, free: 25.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009155/0.3766, allocations: 0.5235 MB / 467 MB, free: 25.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004696/0.3771, allocations: 196.7 kB / 467.2 MB, free: 25.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005561/0.3776, allocations: 283.4 kB / 467.5 MB, free: 25.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.3777, allocations: 21.33 kB / 467.5 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.378, allocations: 93.31 kB / 467.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003316/0.3784, allocations: 212.1 kB / 467.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.3785, allocations: 112.4 kB / 467.9 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006073/0.3791, allocations: 422.5 kB / 468.3 MB, free: 24.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3791, allocations: 0 / 468.3 MB, free: 24.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3791, allocations: 0.9062 kB / 468.3 MB, free: 24.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.3791, allocations: 0 / 468.3 MB, free: 24.89 MB / 350.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.001147/0.3803, allocations: 0.6555 MB / 469 MB, free: 24.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3804, allocations: 18.09 kB / 469 MB, free: 24.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.3805, allocations: 86.09 kB / 469.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005219/0.381, allocations: 91.2 kB / 469.2 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006236/0.3816, allocations: 378.7 kB / 469.6 MB, free: 23.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.3817, allocations: 28.53 kB / 469.6 MB, free: 23.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.3818, allocations: 51.67 kB / 469.6 MB, free: 23.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.383, allocations: 0.6236 MB / 470.3 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.383, allocations: 1.062 kB / 470.3 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.774e-05/0.383, allocations: 18.12 kB / 470.3 MB, free: 23.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.3832, allocations: 27.73 kB / 470.3 MB, free: 23.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008891/0.3841, allocations: 487.8 kB / 470.8 MB, free: 23.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003479/0.3875, allocations: 2.889 MB / 473.7 MB, free: 21.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004058/0.388, allocations: 228 kB / 473.9 MB, free: 21.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.3882, allocations: 144.2 kB / 474 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.3883, allocations: 8.828 kB / 474 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.3883, allocations: 36.83 kB / 474.1 MB, free: 20.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.264e-06/0.3883, allocations: 0 / 474.1 MB, free: 20.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00175/0.3901, allocations: 0.9613 MB / 475 MB, free: 20.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.3901, allocations: 85.97 kB / 475.1 MB, free: 20.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/0.3906, allocations: 323.9 kB / 475.4 MB, free: 20.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3906, allocations: 31.56 kB / 475.5 MB, free: 20.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.3908, allocations: 276.9 kB / 475.7 MB, free: 19.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.722e-05/0.3909, allocations: 102 kB / 475.8 MB, free: 19.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.3909, allocations: 9 kB / 475.9 MB, free: 19.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.571e-05/0.391, allocations: 347.3 kB / 476.2 MB, free: 19.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002256/0.3912, allocations: 143.3 kB / 476.3 MB, free: 19.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.3916, allocations: 345.5 kB / 476.7 MB, free: 18.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003167/0.3919, allocations: 202.9 kB / 476.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3919, allocations: 3.5 kB / 476.9 MB, free: 18.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008496/0.3928, allocations: 0.5216 MB / 477.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.3928, allocations: 7.406 kB / 477.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.3928, allocations: 10.31 kB / 477.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/0.3929, allocations: 11.59 kB / 477.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/0.3933, allocations: 120.9 kB / 477.5 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.064e-05/0.3933, allocations: 10.06 kB / 477.6 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.3936, allocations: 28.91 kB / 477.6 MB, free: 18.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-05/0.3936, allocations: 26.86 kB / 477.6 MB, free: 18.57 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002934/0.3939, allocations: 214.7 kB / 477.8 MB, free: 18.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.009e-05/0.394, allocations: 30 kB / 477.8 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006575/0.3947, allocations: 372 kB / 478.2 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3947, allocations: 4.125 kB / 478.2 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3947, allocations: 3.984 kB / 478.2 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3947, allocations: 5.234 kB / 478.2 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.3961, allocations: 0.8765 MB / 479.1 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3961, allocations: 2.25 kB / 479.1 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.3964, allocations: 70.2 kB / 479.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3965, allocations: 2.219 kB / 479.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.3965, allocations: 11.36 kB / 479.2 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3965, allocations: 3.188 kB / 479.2 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.3965, allocations: 1 kB / 479.2 MB, free: 17.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007216/0.3972, allocations: 0.5886 MB / 479.8 MB, free: 17.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.3973, allocations: 106.7 kB / 479.9 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/0.3974, allocations: 15.59 kB / 479.9 MB, free: 16.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.3976, allocations: 12.48 kB / 479.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.3976, allocations: 21.06 kB / 479.9 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.3976, allocations: 16 kB / 479.9 MB, free: 16.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.3979, allocations: 218.5 kB / 480.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3979, allocations: 0 / 480.2 MB, free: 16.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005304/0.3984, allocations: 92.94 kB / 480.2 MB, free: 16.79 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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.0009671/0.3994, allocations: 1.128 MB / 481.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006063/0.4, allocations: 362.3 kB / 481.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4, allocations: 0 / 481.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.4003, allocations: 149.4 kB / 481.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.4008, allocations: 60.5 kB / 481.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003586/0.4044, allocations: 2.65 MB / 484.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.4047, allocations: 0.8506 MB / 485.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.405, allocations: 131.1 kB / 485.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.4052, allocations: 143.4 kB / 485.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4052, allocations: 3.938 kB / 485.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01732/0.4225, allocations: 6.677 MB / 492.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/0.4227, allocations: 197.5 kB / 492.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/2.386, allocations: 0 / 492.6 MB, free: 5.73 MB / 350.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) Environment - environmentSimulation: 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