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.001298/0.001297, allocations: 113 kB / 17.05 MB, free: 6.086 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.001362/0.001362, allocations: 188 kB / 17.99 MB, free: 5.184 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.175/0.175, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 67.89 kB / 457.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3299, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004781/0.3347, allocations: 4.424 MB / 0.5079 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.3367, allocations: 1.418 MB / 0.5093 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.3369, allocations: 13.34 kB / 0.5093 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009437/0.3379, allocations: 379.9 kB / 0.5097 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004881/0.3384, allocations: 256.6 kB / 0.5099 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005742/0.3389, allocations: 240 kB / 0.5102 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004972/0.3394, allocations: 0.5572 MB / 0.5107 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003967/0.3399, allocations: 293.3 kB / 0.511 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003041/0.3402, allocations: 260.5 kB / 0.5112 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004542/0.3406, allocations: 355.9 kB / 0.5116 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.3407, allocations: 38.75 kB / 0.5116 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003879/0.3411, allocations: 225.2 kB / 0.5118 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.3413, allocations: 243.7 kB / 0.512 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.3416, allocations: 258.5 kB / 0.5123 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007372/0.3423, allocations: 0.6767 MB / 0.513 GB, free: 1.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3423, allocations: 1.781 kB / 0.513 GB, free: 1.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3423, allocations: 0 / 0.513 GB, free: 1.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3424, allocations: 0 / 0.513 GB, free: 1.734 MB / 382.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.001237/0.3436, allocations: 0.7842 MB / 0.5137 GB, free: 1.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3436, allocations: 13.05 kB / 0.5137 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.783e-05/0.3437, allocations: 88.41 kB / 0.5138 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005622/0.3443, allocations: 90.14 kB / 0.5139 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.345, allocations: 426.8 kB / 0.5143 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.81e-05/0.345, allocations: 30.06 kB / 0.5143 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.3451, allocations: 53.64 kB / 0.5144 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009477/0.3461, allocations: 0.6784 MB / 0.5151 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3461, allocations: 1.344 kB / 0.5151 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.807e-05/0.3462, allocations: 12.22 kB / 0.5151 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001773/0.3464, allocations: 51.41 kB / 0.5151 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.3474, allocations: 0.6728 MB / 0.5158 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003724/0.3511, allocations: 2.518 MB / 0.5182 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.3517, allocations: 333.2 kB / 0.5186 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.352, allocations: 230.6 kB / 0.5188 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.3521, allocations: 8.484 kB / 0.5188 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.3521, allocations: 41.67 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.304e-06/0.3521, allocations: 0 / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002101/0.3542, allocations: 1.355 MB / 0.5201 GB, free: 13.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.3543, allocations: 88.61 kB / 0.5202 GB, free: 13.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000285/0.3546, allocations: 305.2 kB / 0.5205 GB, free: 13.22 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.3546, allocations: 32.33 kB / 0.5205 GB, free: 13.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.3548, allocations: 270 kB / 0.5208 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.3549, allocations: 157.5 kB / 0.521 GB, free: 12.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.355, allocations: 92.73 kB / 0.521 GB, free: 12.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3551, allocations: 342.5 kB / 0.5214 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.3554, allocations: 201.2 kB / 0.5216 GB, free: 12.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/0.3558, allocations: 368.9 kB / 0.5219 GB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/0.3566, allocations: 0.6095 MB / 0.5225 GB, free: 11.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3566, allocations: 2.625 kB / 0.5225 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009056/0.3575, allocations: 0.6303 MB / 0.5231 GB, free: 11.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3575, allocations: 8.406 kB / 0.5231 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3576, allocations: 9.594 kB / 0.5231 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.3576, allocations: 8.906 kB / 0.5232 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.358, allocations: 112.5 kB / 0.5233 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/0.3581, allocations: 12.72 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.3583, allocations: 25.3 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/0.3584, allocations: 23.08 kB / 0.5233 GB, free: 11.47 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002523/0.3586, allocations: 214.4 kB / 0.5235 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.068e-05/0.3587, allocations: 42.05 kB / 0.5236 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007738/0.3595, allocations: 498.9 kB / 0.524 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/0.3595, allocations: 15.28 kB / 0.5241 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3596, allocations: 1.406 kB / 0.5241 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3596, allocations: 2.062 kB / 0.5241 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.3614, allocations: 1.102 MB / 0.5251 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.3614, allocations: 1.938 kB / 0.5251 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.3618, allocations: 77.05 kB / 0.5252 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3618, allocations: 6.547 kB / 0.5252 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.124e-05/0.3618, allocations: 13.77 kB / 0.5252 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3618, allocations: 2.781 kB / 0.5252 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.3618, allocations: 0.9062 kB / 0.5252 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.3629, allocations: 0.8398 MB / 0.5261 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.85e-05/0.363, allocations: 109.1 kB / 0.5262 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.3631, allocations: 8.094 kB / 0.5262 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3633, allocations: 17.69 kB / 0.5262 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.3634, allocations: 25.09 kB / 0.5262 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.3634, allocations: 9.312 kB / 0.5262 GB, free: 9.922 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002193/0.3636, allocations: 212.9 kB / 0.5264 GB, free: 9.805 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3636, allocations: 4 kB / 0.5264 GB, free: 9.801 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005319/0.3642, allocations: 110.8 kB / 0.5265 GB, free: 9.785 MB / 398.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 (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.001403/0.3656, allocations: 1.402 MB / 0.5279 GB, free: 8.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000714/0.3663, allocations: 491.7 kB / 0.5284 GB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.3663, allocations: 384 / 0.5284 GB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.3666, allocations: 235.2 kB / 0.5286 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005357/0.3672, allocations: 67.09 kB / 0.5287 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00512/0.3723, allocations: 4.407 MB / 0.533 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.3728, allocations: 0.8723 MB / 0.5338 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000336/0.3731, allocations: 125.9 kB / 0.5339 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.3733, allocations: 143.4 kB / 0.5341 GB, free: 5.027 MB / 398.1 MB Notification: Performance of SimCode: time 2.535e-06/0.3733, allocations: 1.219 kB / 0.5341 GB, free: 5.027 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02555/0.3989, allocations: 7.928 MB / 0.5418 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.947/8.346, allocations: 19.73 kB / 0.5418 GB, free: 0.8047 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches