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.001108/0.001108, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001231/0.001231, allocations: 195 kB / 18 MB, free: 5.105 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 67.89 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3579, allocations: 58.04 MB / 0.5036 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.006238/0.3642, allocations: 4.423 MB / 0.5079 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.3667, allocations: 1.429 MB / 0.5093 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003357/0.367, allocations: 13.31 kB / 0.5093 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.3683, allocations: 381 kB / 0.5097 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008812/0.3692, allocations: 251.2 kB / 0.5099 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008818/0.3701, allocations: 240.3 kB / 0.5102 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008586/0.371, allocations: 0.5641 MB / 0.5107 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005581/0.3715, allocations: 279.4 kB / 0.511 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005315/0.3721, allocations: 257.7 kB / 0.5112 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006042/0.3727, allocations: 351.1 kB / 0.5116 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-05/0.3728, allocations: 42.56 kB / 0.5116 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005158/0.3733, allocations: 230.5 kB / 0.5118 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.3736, allocations: 238.8 kB / 0.512 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000289/0.3739, allocations: 258.8 kB / 0.5123 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009372/0.3748, allocations: 0.6725 MB / 0.5129 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3749, allocations: 1.844 kB / 0.5129 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3749, allocations: 0 / 0.5129 GB, free: 1.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.3749, allocations: 0 / 0.5129 GB, free: 1.723 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.001659/0.3766, allocations: 0.7713 MB / 0.5137 GB, free: 1.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.3766, allocations: 14.3 kB / 0.5137 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.3768, allocations: 87.31 kB / 0.5138 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000614/0.3774, allocations: 90.02 kB / 0.5139 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006956/0.3781, allocations: 422.8 kB / 0.5143 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.3781, allocations: 36.92 kB / 0.5143 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.3783, allocations: 49.75 kB / 0.5144 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.3793, allocations: 0.6793 MB / 0.515 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.3794, allocations: 6.031 kB / 0.515 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.107e-05/0.3794, allocations: 15.56 kB / 0.5151 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/0.3796, allocations: 51 kB / 0.5151 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.3808, allocations: 0.6718 MB / 0.5158 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.3857, allocations: 2.511 MB / 0.5182 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006266/0.3863, allocations: 334 kB / 0.5185 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/0.3867, allocations: 229.3 kB / 0.5187 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.3867, allocations: 11.44 kB / 0.5188 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.3868, allocations: 36.78 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.735e-06/0.3868, allocations: 0 / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002389/0.3892, allocations: 1.352 MB / 0.5201 GB, free: 13.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.3892, allocations: 85.95 kB / 0.5202 GB, free: 13.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.3897, allocations: 304.2 kB / 0.5205 GB, free: 13.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.3897, allocations: 30.95 kB / 0.5205 GB, free: 13.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.3899, allocations: 260.8 kB / 0.5208 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.3901, allocations: 146.7 kB / 0.5209 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.3902, allocations: 98.72 kB / 0.521 GB, free: 12.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3904, allocations: 349.9 kB / 0.5213 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/0.3908, allocations: 201.6 kB / 0.5215 GB, free: 12.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/0.3913, allocations: 367.4 kB / 0.5219 GB, free: 12.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008567/0.3921, allocations: 0.6063 MB / 0.5225 GB, free: 11.78 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.3921, allocations: 1.375 kB / 0.5225 GB, free: 11.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001118/0.3933, allocations: 0.6273 MB / 0.5231 GB, free: 11.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.3933, allocations: 11.92 kB / 0.5231 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.3933, allocations: 10.22 kB / 0.5231 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.745e-05/0.3934, allocations: 8.188 kB / 0.5231 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.3938, allocations: 112.2 kB / 0.5232 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.471e-05/0.3939, allocations: 13.5 kB / 0.5232 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.3942, allocations: 20.36 kB / 0.5232 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.3943, allocations: 24.17 kB / 0.5233 GB, free: 11.5 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.0003195/0.3946, allocations: 209.7 kB / 0.5235 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.3947, allocations: 41.55 kB / 0.5235 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008914/0.3956, allocations: 0.4927 MB / 0.524 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/0.3956, allocations: 14.75 kB / 0.524 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3957, allocations: 0.9062 kB / 0.524 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.3957, allocations: 2.016 kB / 0.524 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.3978, allocations: 1.098 MB / 0.5251 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3978, allocations: 1.375 kB / 0.5251 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/0.3982, allocations: 74.17 kB / 0.5252 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.3982, allocations: 6.875 kB / 0.5252 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.3982, allocations: 9.422 kB / 0.5252 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.3982, allocations: 2.062 kB / 0.5252 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3982, allocations: 2.688 kB / 0.5252 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.3996, allocations: 0.8343 MB / 0.526 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.3998, allocations: 107.7 kB / 0.5261 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.652e-05/0.3999, allocations: 13.47 kB / 0.5261 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.4001, allocations: 16.33 kB / 0.5261 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.482e-05/0.4002, allocations: 33.55 kB / 0.5262 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.4003, allocations: 9.609 kB / 0.5262 GB, free: 9.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003999/0.4007, allocations: 213.7 kB / 0.5264 GB, free: 9.836 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4007, allocations: 0 / 0.5264 GB, free: 9.836 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007888/0.4015, allocations: 110.7 kB / 0.5265 GB, free: 9.82 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.002076/0.4036, allocations: 1.398 MB / 0.5278 GB, free: 8.879 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.4047, allocations: 496 kB / 0.5283 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4047, allocations: 0 / 0.5283 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003664/0.4051, allocations: 231.3 kB / 0.5285 GB, free: 8.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006304/0.4057, allocations: 66.77 kB / 0.5286 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007406/0.4131, allocations: 4.394 MB / 0.5329 GB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006025/0.4138, allocations: 0.8686 MB / 0.5337 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000435/0.4142, allocations: 126 kB / 0.5339 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.4145, allocations: 151.3 kB / 0.534 GB, free: 5.078 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4145, allocations: 0 / 0.534 GB, free: 5.078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.4475, allocations: 8.021 MB / 0.5418 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.626, allocations: 17.08 kB / 0.5418 GB, free: 0.7109 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 & /home/hudson/saved_omc/OMSimulator/install/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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/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