Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",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.000915/0.000915, allocations: 92.81 kB / 16.3 MB, free: 6.457 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.0009884/0.0009887, allocations: 184.6 kB / 17.2 MB, free: 6.34 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.381/1.381, allocations: 223.2 MB / 241.1 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3398/0.3398, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004357, allocations: 12 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3091, allocations: 59.15 MB / 459.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004182/0.3134, allocations: 4.303 MB / 463.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.3157, allocations: 1.533 MB / 465 MB, free: 26.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.3159, allocations: 26.75 kB / 465.1 MB, free: 26.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.3161, allocations: 72.14 kB / 465.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005785/0.3167, allocations: 214.4 kB / 465.3 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006438/0.3174, allocations: 235.1 kB / 465.6 MB, free: 26.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.3177, allocations: 291.8 kB / 465.9 MB, free: 25.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007566/0.3185, allocations: 0.5074 MB / 466.4 MB, free: 25.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002612/0.3188, allocations: 178 kB / 466.5 MB, free: 25.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004083/0.3192, allocations: 251.1 kB / 466.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.281e-05/0.3193, allocations: 21.44 kB / 466.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003776/0.3196, allocations: 159 kB / 467 MB, free: 25.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000227/0.3199, allocations: 201.9 kB / 467.2 MB, free: 25.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.32, allocations: 108.4 kB / 467.3 MB, free: 25.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006085/0.3206, allocations: 494.2 kB / 467.7 MB, free: 25.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.3206, allocations: 3.938 kB / 467.8 MB, free: 25.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3206, allocations: 2.031 kB / 467.8 MB, free: 25.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3206, allocations: 4 kB / 467.8 MB, free: 25.14 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001166/0.3218, allocations: 0.6919 MB / 468.4 MB, free: 24.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3219, allocations: 9.844 kB / 468.5 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.322, allocations: 92.58 kB / 468.5 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005682/0.3226, allocations: 90.62 kB / 468.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006569/0.3232, allocations: 404 kB / 469 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.3233, allocations: 33.77 kB / 469.1 MB, free: 24.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.3234, allocations: 44.84 kB / 469.1 MB, free: 24.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.3245, allocations: 0.6685 MB / 469.8 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.3245, allocations: 5.125 kB / 469.8 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.685e-05/0.3245, allocations: 15.66 kB / 469.8 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001834/0.3247, allocations: 51.66 kB / 469.8 MB, free: 23.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3258, allocations: 0.6597 MB / 470.5 MB, free: 23.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003589/0.3294, allocations: 2.514 MB / 473 MB, free: 21.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005379/0.3299, allocations: 340.6 kB / 473.4 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.33, allocations: 10.41 kB / 473.4 MB, free: 21.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.33, allocations: 37.36 kB / 473.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.705e-06/0.33, allocations: 0 / 473.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002122/0.3322, allocations: 1.5 MB / 474.9 MB, free: 20.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.3322, allocations: 81.83 kB / 475 MB, free: 20.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.3326, allocations: 296.9 kB / 475.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.3326, allocations: 31.39 kB / 475.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3328, allocations: 256.7 kB / 475.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.3329, allocations: 146.7 kB / 475.7 MB, free: 20.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.127e-05/0.3329, allocations: 14.77 kB / 475.7 MB, free: 20.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.333, allocations: 348.2 kB / 476 MB, free: 19.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.3333, allocations: 196.6 kB / 476.2 MB, free: 19.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.3337, allocations: 364.5 kB / 476.6 MB, free: 19.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003792/0.3341, allocations: 265.5 kB / 476.9 MB, free: 19.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3341, allocations: 2.375 kB / 476.9 MB, free: 19.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008921/0.335, allocations: 0.627 MB / 477.5 MB, free: 19.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.335, allocations: 10.72 kB / 477.5 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.335, allocations: 5.688 kB / 477.5 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.3351, allocations: 8.188 kB / 477.5 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004155/0.3355, allocations: 116.3 kB / 477.6 MB, free: 19.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.3355, allocations: 12 kB / 477.6 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.3358, allocations: 33.12 kB / 477.7 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.3358, allocations: 20.44 kB / 477.7 MB, free: 19.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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): 55 * Array equations: 2 * 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.0002324/0.3361, allocations: 215.1 kB / 477.9 MB, free: 18.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.446e-05/0.3361, allocations: 40.45 kB / 477.9 MB, free: 18.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006747/0.3368, allocations: 494.1 kB / 478.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/0.3369, allocations: 9.781 kB / 478.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3369, allocations: 1.031 kB / 478.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3369, allocations: 0 / 478.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.3385, allocations: 1.095 MB / 479.5 MB, free: 17.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3385, allocations: 4.938 kB / 479.5 MB, free: 17.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.3389, allocations: 73.53 kB / 479.6 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3389, allocations: 3.281 kB / 479.6 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3389, allocations: 8 kB / 479.6 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3389, allocations: 10.3 kB / 479.6 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3389, allocations: 1 kB / 479.6 MB, free: 17.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009796/0.3399, allocations: 0.8667 MB / 480.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.237e-05/0.34, allocations: 111.1 kB / 480.6 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.3401, allocations: 11.73 kB / 480.6 MB, free: 17.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.3403, allocations: 19.75 kB / 480.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.3404, allocations: 29.88 kB / 480.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.3404, allocations: 12.47 kB / 480.7 MB, free: 17.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.3406, allocations: 209.8 kB / 480.9 MB, free: 17 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3406, allocations: 0 / 480.9 MB, free: 17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005534/0.3412, allocations: 114.3 kB / 481 MB, free: 16.98 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001399/0.3426, allocations: 1.69 MB / 482.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007321/0.3433, allocations: 491 kB / 483.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3433, allocations: 0 / 483.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002399/0.3436, allocations: 224 kB / 483.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.344, allocations: 69.75 kB / 483.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/0.348, allocations: 6.253 MB / 489.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.3483, allocations: 0.8866 MB / 490.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003303/0.3486, allocations: 127.2 kB / 490.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.3488, allocations: 139.4 kB / 490.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3488, allocations: 0 / 490.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.3674, allocations: 7.408 MB / 498.3 MB, free: 224 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/0.3676, allocations: 193.9 kB / 498.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.218, allocations: 0 / 498.4 MB, free: 15.98 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat does not exist to compare? outputFormat=mat