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: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001187/0.001187, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 85.91 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1775/0.1775, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.801e-05/1.795e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 56.33 MB / 466.9 MB, free: 6.574 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.383/0.4858, allocations: 99.44 MB / 0.5531 GB, free: 11.49 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.4861, allocations: 83.95 kB / 0.5531 GB, free: 11.41 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03866/0.5248, allocations: 13.07 MB / 0.5659 GB, free: 14.21 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.5248, allocations: 0 / 0.5659 GB, free: 14.21 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.564e-05/0.5249, allocations: 8 kB / 0.5659 GB, free: 14.2 MB / 411.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.001508/0.5264, allocations: 0.6718 MB / 0.5666 GB, free: 13.48 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.5264, allocations: 11.97 kB / 0.5666 GB, free: 13.47 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006348/0.5271, allocations: 87.3 kB / 0.5667 GB, free: 13.38 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002261/0.5293, allocations: 0.8564 MB / 0.5675 GB, free: 12.48 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.027e-05/0.5294, allocations: 16 kB / 0.5675 GB, free: 12.47 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.5295, allocations: 24 kB / 0.5675 GB, free: 12.45 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008482/0.5304, allocations: 465.9 kB / 0.568 GB, free: 11.99 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009302/0.5313, allocations: 0.5974 MB / 0.5686 GB, free: 11.36 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.5314, allocations: 3.938 kB / 0.5686 GB, free: 11.36 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.15e-05/0.5314, allocations: 0 / 0.5686 GB, free: 11.36 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.5315, allocations: 52.73 kB / 0.5686 GB, free: 11.3 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003974/0.5355, allocations: 2.435 MB / 0.571 GB, free: 8.758 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.536, allocations: 341.2 kB / 0.5713 GB, free: 8.406 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003504/0.5364, allocations: 262.4 kB / 0.5716 GB, free: 8.145 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.416e-05/0.5365, allocations: 4 kB / 0.5716 GB, free: 8.141 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.5365, allocations: 38.56 kB / 0.5716 GB, free: 8.094 MB / 411.1 MB Notification: Performance of pre-optimization done (n=46): time 2.345e-06/0.5365, allocations: 0 / 0.5716 GB, free: 8.094 MB / 411.1 MB Notification: Performance of matching and sorting (n=47): time 0.003276/0.5398, allocations: 1.559 MB / 0.5731 GB, free: 6.484 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.5399, allocations: 81.39 kB / 0.5732 GB, free: 6.387 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.5402, allocations: 234.2 kB / 0.5734 GB, free: 6.156 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.5402, allocations: 29.69 kB / 0.5735 GB, free: 6.121 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.5404, allocations: 236.5 kB / 0.5737 GB, free: 5.887 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.5405, allocations: 161.6 kB / 0.5738 GB, free: 5.727 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.5405, allocations: 0 / 0.5738 GB, free: 5.727 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5407, allocations: 354.8 kB / 0.5742 GB, free: 5.371 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.541, allocations: 213 kB / 0.5744 GB, free: 5.164 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/0.5414, allocations: 365.5 kB / 0.5747 GB, free: 4.746 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007789/0.5422, allocations: 384 kB / 0.5751 GB, free: 4.367 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.5422, allocations: 0 / 0.5751 GB, free: 4.367 MB / 411.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001239/0.5435, allocations: 0.719 MB / 0.5758 GB, free: 3.645 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.5435, allocations: 11.95 kB / 0.5758 GB, free: 3.633 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.5435, allocations: 4 kB / 0.5758 GB, free: 3.629 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.5436, allocations: 8 kB / 0.5758 GB, free: 3.621 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.544, allocations: 119.7 kB / 0.5759 GB, free: 3.504 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.544, allocations: 12.5 kB / 0.5759 GB, free: 3.492 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.5443, allocations: 23.97 kB / 0.576 GB, free: 3.469 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.5444, allocations: 23.98 kB / 0.576 GB, free: 3.445 MB / 411.1 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 () * 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.0001283/0.5445, allocations: 112.9 kB / 0.5761 GB, free: 3.328 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.167e-05/0.5446, allocations: 39.53 kB / 0.5761 GB, free: 3.289 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.5458, allocations: 0.6345 MB / 0.5768 GB, free: 2.648 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.354e-05/0.5459, allocations: 23.92 kB / 0.5768 GB, free: 2.625 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.5459, allocations: 0 / 0.5768 GB, free: 2.625 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.5459, allocations: 3.984 kB / 0.5768 GB, free: 2.621 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.5481, allocations: 1.231 MB / 0.578 GB, free: 1.336 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5481, allocations: 0 / 0.578 GB, free: 1.336 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/0.5485, allocations: 71.89 kB / 0.5781 GB, free: 1.266 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.5485, allocations: 4 kB / 0.5781 GB, free: 1.262 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.5486, allocations: 11.98 kB / 0.5781 GB, free: 1.25 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.5486, allocations: 0 / 0.5781 GB, free: 1.25 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.5486, allocations: 4 kB / 0.5781 GB, free: 1.246 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.5501, allocations: 1.07 MB / 0.5791 GB, free: 124 kB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.83e-05/0.5502, allocations: 100.7 kB / 0.5792 GB, free: 4 kB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.943e-05/0.5503, allocations: 4 kB / 0.5792 GB, free: 0 / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.5505, allocations: 24.06 kB / 0.5792 GB, free: 15.97 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.5506, allocations: 23.86 kB / 0.5793 GB, free: 15.95 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.5506, allocations: 16 kB / 0.5793 GB, free: 15.94 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.5508, allocations: 182 kB / 0.5795 GB, free: 15.76 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5508, allocations: 0 / 0.5795 GB, free: 15.76 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005282/0.5514, allocations: 119.9 kB / 0.5796 GB, free: 15.64 MB / 427.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 () * 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.0002472/0.5516, allocations: 144.8 kB / 0.5797 GB, free: 15.49 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007173/0.5523, allocations: 0.5102 MB / 0.5802 GB, free: 14.98 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5524, allocations: 4.188 kB / 0.5802 GB, free: 14.98 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.5527, allocations: 251.8 kB / 0.5804 GB, free: 14.73 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.5531, allocations: 52.8 kB / 0.5805 GB, free: 14.68 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.5546, allocations: 0.9203 MB / 0.5814 GB, free: 13.72 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.555, allocations: 0.8864 MB / 0.5823 GB, free: 12.81 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.5554, allocations: 131.2 kB / 0.5824 GB, free: 12.68 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.5555, allocations: 31.44 kB / 0.5824 GB, free: 12.65 MB / 427.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5555, allocations: 0 / 0.5824 GB, free: 12.65 MB / 427.1 MB Notification: Performance of Templates: time 0.007755/0.5633, allocations: 3.572 MB / 0.5859 GB, free: 9.082 MB / 427.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches