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.001052/0.001052, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.001283/0.001283, allocations: 182.3 kB / 17.19 MB, free: 5.906 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.398/1.398, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4075/0.4075, allocations: 38.09 MB / 330.3 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.000291, allocations: 8 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3298, allocations: 59.16 MB / 459.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.00588/0.3357, allocations: 4.3 MB / 463.5 MB, free: 27.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.3383, allocations: 1.53 MB / 465 MB, free: 26.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.3386, allocations: 25.56 kB / 465.1 MB, free: 26.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.3388, allocations: 69.2 kB / 465.1 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005801/0.3394, allocations: 214.2 kB / 465.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.34, allocations: 233.9 kB / 465.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.3404, allocations: 280.4 kB / 465.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007891/0.3412, allocations: 0.5068 MB / 466.4 MB, free: 25.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.3415, allocations: 179.8 kB / 466.5 MB, free: 25.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003516/0.3419, allocations: 196.8 kB / 466.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.219e-05/0.3419, allocations: 17 kB / 466.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.3422, allocations: 86.12 kB / 466.8 MB, free: 25.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.3424, allocations: 194.2 kB / 467 MB, free: 25.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.3425, allocations: 107.4 kB / 467.1 MB, free: 25.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006137/0.3431, allocations: 421.5 kB / 467.5 MB, free: 25.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3431, allocations: 1.062 kB / 467.5 MB, free: 25.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3431, allocations: 0 / 467.5 MB, free: 25.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3432, allocations: 4 kB / 467.5 MB, free: 25.04 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.001109/0.3443, allocations: 0.6567 MB / 468.2 MB, free: 24.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3443, allocations: 9.531 kB / 468.2 MB, free: 24.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.657e-05/0.3444, allocations: 81.73 kB / 468.3 MB, free: 24.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005372/0.345, allocations: 85.5 kB / 468.4 MB, free: 24.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000621/0.3456, allocations: 394.3 kB / 468.7 MB, free: 24.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.3457, allocations: 28.83 kB / 468.8 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3458, allocations: 54.42 kB / 468.8 MB, free: 24.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009123/0.3467, allocations: 0.6111 MB / 469.4 MB, free: 23.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.3467, allocations: 1.25 kB / 469.4 MB, free: 23.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.3468, allocations: 22.03 kB / 469.5 MB, free: 23.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.3469, allocations: 32.06 kB / 469.5 MB, free: 23.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007587/0.3477, allocations: 478 kB / 470 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002908/0.3506, allocations: 2.882 MB / 472.8 MB, free: 21.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.351, allocations: 228.5 kB / 473.1 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.351, allocations: 8.328 kB / 473.1 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.351, allocations: 37.36 kB / 473.1 MB, free: 21.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.351, allocations: 0 / 473.1 MB, free: 21.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00159/0.3526, allocations: 0.9535 MB / 474.1 MB, free: 20.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.3527, allocations: 80.08 kB / 474.1 MB, free: 20.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000347/0.353, allocations: 322.2 kB / 474.5 MB, free: 20.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3531, allocations: 31.14 kB / 474.5 MB, free: 20.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.3532, allocations: 272.7 kB / 474.8 MB, free: 20.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.3533, allocations: 102.6 kB / 474.9 MB, free: 19.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.3534, allocations: 13.97 kB / 474.9 MB, free: 19.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.3535, allocations: 346.9 kB / 475.2 MB, free: 19.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.3537, allocations: 143.9 kB / 475.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.354, allocations: 337.1 kB / 475.7 MB, free: 19.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.3543, allocations: 200.8 kB / 475.9 MB, free: 19.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3544, allocations: 6.75 kB / 475.9 MB, free: 19.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007652/0.3551, allocations: 0.512 MB / 476.4 MB, free: 18.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3552, allocations: 12.91 kB / 476.4 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.3552, allocations: 7.109 kB / 476.4 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.3552, allocations: 10 kB / 476.4 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000438/0.3557, allocations: 119.7 kB / 476.5 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.321e-05/0.3557, allocations: 15.34 kB / 476.6 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.3559, allocations: 28.38 kB / 476.6 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.356, allocations: 32.05 kB / 476.6 MB, free: 18.95 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.0002509/0.3562, allocations: 210.6 kB / 476.8 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-05/0.3563, allocations: 32.28 kB / 476.9 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000614/0.3569, allocations: 358.6 kB / 477.2 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3569, allocations: 3.438 kB / 477.2 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.357, allocations: 4.906 kB / 477.2 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.357, allocations: 6.328 kB / 477.2 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.3584, allocations: 0.8743 MB / 478.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3584, allocations: 1.031 kB / 478.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003136/0.3588, allocations: 61.34 kB / 478.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.715e-06/0.3588, allocations: 2.75 kB / 478.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.3588, allocations: 17.17 kB / 478.2 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3588, allocations: 5.828 kB / 478.2 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.3588, allocations: 2.531 kB / 478.2 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008056/0.3596, allocations: 0.6267 MB / 478.8 MB, free: 17.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.138e-05/0.3597, allocations: 107.1 kB / 478.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.31e-05/0.3598, allocations: 9.312 kB / 478.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.36, allocations: 15.78 kB / 478.9 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.392e-05/0.36, allocations: 24.59 kB / 479 MB, free: 17.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.3601, allocations: 8.234 kB / 479 MB, free: 17.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.3603, allocations: 221.1 kB / 479.2 MB, free: 17.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3603, allocations: 7.5 kB / 479.2 MB, free: 17.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005294/0.3609, allocations: 90.34 kB / 479.3 MB, free: 17.38 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.000965/0.3618, allocations: 1.44 MB / 480.7 MB, free: 16.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000626/0.3625, allocations: 356.8 kB / 481.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3625, allocations: 0 / 481.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.3627, allocations: 143.5 kB / 481.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.3631, allocations: 63.95 kB / 481.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004468/0.3676, allocations: 6.998 MB / 488.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.368, allocations: 0.869 MB / 489.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003673/0.3683, allocations: 131.1 kB / 489.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.3685, allocations: 146.4 kB / 489.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3685, allocations: 0 / 489.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.3867, allocations: 6.637 MB / 496 MB, free: 2.348 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.3869, allocations: 187.1 kB / 496.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.772/2.159, allocations: 0 / 496.2 MB, free: 2.109 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