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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.264/1.264, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007867/0.0007868, allocations: 92.2 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.1609/0.1609, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003167/0.0003167, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2519, allocations: 56.32 MB / 480.4 MB, free: 9.414 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1209/0.3728, allocations: 100.2 MB / 0.567 GB, free: 2.098 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.3731, allocations: 79.95 kB / 0.5671 GB, free: 2.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03591/0.409, allocations: 13.19 MB / 0.58 GB, free: 4.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4091, allocations: 0 / 0.58 GB, free: 4.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.589e-05/0.4091, allocations: 16 kB / 0.58 GB, free: 4.664 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001312/0.4104, allocations: 0.7231 MB / 0.5807 GB, free: 3.891 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.4105, allocations: 8.031 kB / 0.5807 GB, free: 3.883 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.4106, allocations: 90.52 kB / 0.5808 GB, free: 3.785 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004907/0.4111, allocations: 87.28 kB / 0.5809 GB, free: 3.699 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002086/0.4132, allocations: 0.8606 MB / 0.5817 GB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.4132, allocations: 29 kB / 0.5817 GB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.358e-05/0.4133, allocations: 43.92 kB / 0.5818 GB, free: 2.723 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009288/0.4143, allocations: 0.6647 MB / 0.5824 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.4143, allocations: 0 / 0.5824 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.4143, allocations: 16 kB / 0.5824 GB, free: 2.004 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.4145, allocations: 52.89 kB / 0.5825 GB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009035/0.4154, allocations: 0.6362 MB / 0.5831 GB, free: 1.316 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003315/0.4187, allocations: 2.437 MB / 0.5855 GB, free: 14.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004768/0.4192, allocations: 345.7 kB / 0.5858 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.4192, allocations: 4.062 kB / 0.5858 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.4193, allocations: 50.45 kB / 0.5859 GB, free: 14.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=46): time 2.594e-06/0.4193, allocations: 4 kB / 0.5859 GB, free: 14.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.002226/0.4215, allocations: 1.697 MB / 0.5875 GB, free: 12.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.4216, allocations: 81.39 kB / 0.5876 GB, free: 12.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.4218, allocations: 258.5 kB / 0.5879 GB, free: 12.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.4219, allocations: 29.7 kB / 0.5879 GB, free: 12.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.422, allocations: 250.7 kB / 0.5881 GB, free: 11.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.4221, allocations: 169.8 kB / 0.5883 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.4222, allocations: 8 kB / 0.5883 GB, free: 11.72 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4223, allocations: 346.8 kB / 0.5886 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.4226, allocations: 213 kB / 0.5888 GB, free: 11.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003531/0.423, allocations: 370.5 kB / 0.5892 GB, free: 10.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003568/0.4233, allocations: 276.2 kB / 0.5894 GB, free: 10.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4233, allocations: 4 kB / 0.5894 GB, free: 10.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008537/0.4242, allocations: 0.6446 MB / 0.5901 GB, free: 9.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.4242, allocations: 11.56 kB / 0.5901 GB, free: 9.812 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4242, allocations: 4 kB / 0.5901 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.4243, allocations: 12 kB / 0.5901 GB, free: 9.797 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.4247, allocations: 115.8 kB / 0.5902 GB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.4247, allocations: 11.98 kB / 0.5902 GB, free: 9.672 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.425, allocations: 27.97 kB / 0.5902 GB, free: 9.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.4251, allocations: 16 kB / 0.5903 GB, free: 9.629 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (55): * Single equations (assignments): 52 * Array equations: 3 * 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.0002516/0.4253, allocations: 221.6 kB / 0.5905 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-05/0.4254, allocations: 43.47 kB / 0.5905 GB, free: 9.359 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008319/0.4262, allocations: 0.5329 MB / 0.591 GB, free: 8.812 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-05/0.4263, allocations: 19.98 kB / 0.5911 GB, free: 8.793 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4263, allocations: 4 kB / 0.5911 GB, free: 8.789 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4263, allocations: 0 / 0.5911 GB, free: 8.789 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.4282, allocations: 1.18 MB / 0.5922 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4282, allocations: 3.938 kB / 0.5922 GB, free: 7.539 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003792/0.4286, allocations: 75.89 kB / 0.5923 GB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.4286, allocations: 7.984 kB / 0.5923 GB, free: 7.457 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.4287, allocations: 8 kB / 0.5923 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.4287, allocations: 4 kB / 0.5923 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4287, allocations: 0 / 0.5923 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.4299, allocations: 0.9528 MB / 0.5932 GB, free: 6.438 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.43, allocations: 104.6 kB / 0.5933 GB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.4301, allocations: 27.91 kB / 0.5934 GB, free: 6.289 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.4303, allocations: 27.97 kB / 0.5934 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.4304, allocations: 19.98 kB / 0.5934 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.4304, allocations: 11.98 kB / 0.5934 GB, free: 6.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.4306, allocations: 203.1 kB / 0.5936 GB, free: 6.031 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4306, allocations: 0 / 0.5936 GB, free: 6.031 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005062/0.4311, allocations: 127.9 kB / 0.5937 GB, free: 5.906 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 (34): * Single equations (assignments): 30 * Array equations: 3 * 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.001646/0.4328, allocations: 1.803 MB / 0.5955 GB, free: 4.051 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000766/0.4336, allocations: 0.5169 MB / 0.596 GB, free: 3.531 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4336, allocations: 4 kB / 0.596 GB, free: 3.527 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.4339, allocations: 245 kB / 0.5962 GB, free: 3.289 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.4343, allocations: 72.77 kB / 0.5963 GB, free: 3.219 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004966/0.4393, allocations: 5.894 MB / 0.6021 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.4398, allocations: 0.887 MB / 0.6029 GB, free: 12.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003546/0.4401, allocations: 123.2 kB / 0.603 GB, free: 12.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.4404, allocations: 151.4 kB / 0.6032 GB, free: 11.99 MB / 442.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4404, allocations: 0 / 0.6032 GB, free: 11.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02008/0.4604, allocations: 7.547 MB / 0.6106 GB, free: 4.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.4607, allocations: 192.4 kB / 0.6107 GB, free: 4.258 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.938/2.399, allocations: 0 / 0.6107 GB, free: 4.258 MB / 442.7 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) 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