Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_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.001034/0.001034, allocations: 109.2 kB / 16.92 MB, free: 5.762 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.001091/0.001091, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.263/1.263, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1763/0.1763, allocations: 38.03 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 56.67 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08026/0.08147, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005468/0.08698, allocations: 4.419 MB / 461.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.08919, allocations: 1.429 MB / 462.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.08945, allocations: 11.94 kB / 462.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.09049, allocations: 378.4 kB / 463.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000525/0.09103, allocations: 230.8 kB / 463.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006403/0.09168, allocations: 239.4 kB / 463.6 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005741/0.09226, allocations: 0.534 MB / 464.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004033/0.09268, allocations: 281 kB / 464.5 MB, free: 452 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003492/0.09304, allocations: 247 kB / 464.7 MB, free: 204 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004509/0.0935, allocations: 291 kB / 465 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.09358, allocations: 32 kB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002866/0.09387, allocations: 139.8 kB / 465.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.09408, allocations: 219.5 kB / 465.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002534/0.09435, allocations: 234.9 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005726/0.09493, allocations: 0.5607 MB / 466.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.09494, allocations: 3.938 kB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09495, allocations: 4 kB / 466.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.09498, allocations: 0 / 466.2 MB, free: 14.73 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.00141/0.0964, allocations: 0.731 MB / 466.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.09645, allocations: 11.89 kB / 466.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.09657, allocations: 82.72 kB / 467 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005968/0.09717, allocations: 84.31 kB / 467.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006692/0.09785, allocations: 395.2 kB / 467.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.09789, allocations: 29.38 kB / 467.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.09802, allocations: 47.92 kB / 467.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008307/0.09886, allocations: 0.6287 MB / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.09889, allocations: 3.938 kB / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.39e-05/0.09894, allocations: 24 kB / 468.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.09905, allocations: 28.98 kB / 468.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006964/0.09976, allocations: 479.5 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.1028, allocations: 2.887 MB / 471.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.1031, allocations: 232.9 kB / 471.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.1033, allocations: 146.6 kB / 471.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1034, allocations: 7.984 kB / 471.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.1034, allocations: 38.5 kB / 472 MB, free: 8.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.024e-06/0.1034, allocations: 4 kB / 472 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001462/0.1049, allocations: 0.9583 MB / 472.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.105, allocations: 81.11 kB / 473 MB, free: 7.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.1053, allocations: 328.4 kB / 473.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.1053, allocations: 33.64 kB / 473.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1054, allocations: 271.2 kB / 473.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.853e-05/0.1055, allocations: 106.8 kB / 473.7 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1057, allocations: 94.16 kB / 473.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1058, allocations: 342.8 kB / 474.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.106, allocations: 145 kB / 474.3 MB, free: 6.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.1063, allocations: 343.8 kB / 474.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000571/0.1069, allocations: 0.5325 MB / 475.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1069, allocations: 0 / 475.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000723/0.1076, allocations: 0.5324 MB / 475.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1077, allocations: 8 kB / 475.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1077, allocations: 7.984 kB / 475.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.1077, allocations: 12 kB / 475.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000401/0.1081, allocations: 115.8 kB / 475.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1081, allocations: 19.86 kB / 475.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.1084, allocations: 27.98 kB / 475.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.1084, allocations: 28 kB / 475.9 MB, free: 4.312 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001977/0.1086, allocations: 221.6 kB / 476.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.954e-05/0.1087, allocations: 27.62 kB / 476.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005585/0.1093, allocations: 369.5 kB / 476.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1093, allocations: 4 kB / 476.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1093, allocations: 4 kB / 476.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1093, allocations: 0 / 476.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.1106, allocations: 0.891 MB / 477.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1106, allocations: 4 kB / 477.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/0.1109, allocations: 59.91 kB / 477.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1109, allocations: 4 kB / 477.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.1109, allocations: 15.92 kB / 477.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.1109, allocations: 0 / 477.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.111, allocations: 7.938 kB / 477.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006874/0.1116, allocations: 0.5771 MB / 478.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.4e-05/0.1117, allocations: 108.8 kB / 478.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.024e-05/0.1118, allocations: 11.94 kB / 478.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.112, allocations: 11.98 kB / 478.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.112, allocations: 23.92 kB / 478.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.1121, allocations: 12.08 kB / 478.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.1123, allocations: 223.1 kB / 478.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1123, allocations: 0 / 478.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004245/0.1127, allocations: 88 kB / 478.6 MB, free: 1.535 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009023/0.1136, allocations: 1.134 MB / 479.7 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005882/0.1142, allocations: 408.3 kB / 480.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1142, allocations: 0 / 480.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.1144, allocations: 147.8 kB / 480.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.1149, allocations: 74.23 kB / 480.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.1192, allocations: 3.969 MB / 484.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.1197, allocations: 0.8543 MB / 485.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.12, allocations: 131.1 kB / 485.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.1202, allocations: 139.4 kB / 485.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1202, allocations: 0 / 485.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.1443, allocations: 6.96 MB / 492.4 MB, free: 3.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.942/7.087, allocations: 4.062 kB / 492.4 MB, free: 3.477 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)