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.00139/0.00139, allocations: 114 kB / 17.06 MB, free: 5.973 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.001133/0.001133, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1814/0.1814, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.308, allocations: 58.05 MB / 0.5036 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004912/0.3129, allocations: 4.427 MB / 0.5079 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002661/0.3156, allocations: 1.42 MB / 0.5093 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002631/0.3159, allocations: 12.97 kB / 0.5093 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.3171, allocations: 380.8 kB / 0.5097 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000671/0.3178, allocations: 256 kB / 0.5099 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000627/0.3185, allocations: 243.6 kB / 0.5102 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.319, allocations: 0.552 MB / 0.5107 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004068/0.3195, allocations: 281.9 kB / 0.511 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003707/0.3198, allocations: 266.1 kB / 0.5112 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005948/0.3204, allocations: 354 kB / 0.5116 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.006e-05/0.3205, allocations: 39.34 kB / 0.5116 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005702/0.3211, allocations: 225.6 kB / 0.5118 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003282/0.3215, allocations: 241.1 kB / 0.512 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003489/0.3218, allocations: 261.4 kB / 0.5123 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.3228, allocations: 0.6695 MB / 0.5129 GB, free: 1.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3229, allocations: 0 / 0.5129 GB, free: 1.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3229, allocations: 5.281 kB / 0.5129 GB, free: 1.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.3229, allocations: 0.7969 kB / 0.513 GB, free: 1.73 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.001523/0.3244, allocations: 0.7702 MB / 0.5137 GB, free: 1.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.3245, allocations: 14.89 kB / 0.5137 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.3246, allocations: 83.3 kB / 0.5138 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/0.3252, allocations: 89.31 kB / 0.5139 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007754/0.326, allocations: 431 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.3261, allocations: 37.11 kB / 0.5143 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.3262, allocations: 46.69 kB / 0.5144 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.3273, allocations: 0.6782 MB / 0.515 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3273, allocations: 1.25 kB / 0.515 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.3274, allocations: 15.84 kB / 0.5151 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001794/0.3275, allocations: 48.81 kB / 0.5151 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.3288, allocations: 0.672 MB / 0.5158 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004143/0.3329, allocations: 2.516 MB / 0.5182 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007373/0.3337, allocations: 340.7 kB / 0.5185 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004051/0.3341, allocations: 222 kB / 0.5187 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.3342, allocations: 13.12 kB / 0.5188 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3342, allocations: 37.7 kB / 0.5188 GB, free: 14.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.807e-06/0.3342, allocations: 0 / 0.5188 GB, free: 14.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002968/0.3372, allocations: 1.354 MB / 0.5201 GB, free: 13.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.612e-05/0.3373, allocations: 80.94 kB / 0.5202 GB, free: 13.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003867/0.3377, allocations: 298.8 kB / 0.5205 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.3378, allocations: 31.05 kB / 0.5205 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.3379, allocations: 262.5 kB / 0.5208 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.3381, allocations: 149.3 kB / 0.5209 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.3382, allocations: 97.5 kB / 0.521 GB, free: 12.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.3383, allocations: 350.3 kB / 0.5213 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.3386, allocations: 196.7 kB / 0.5215 GB, free: 12.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.339, allocations: 369.5 kB / 0.5219 GB, free: 12.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007565/0.3398, allocations: 0.6104 MB / 0.5225 GB, free: 11.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3398, allocations: 1.188 kB / 0.5225 GB, free: 11.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001249/0.3411, allocations: 0.624 MB / 0.5231 GB, free: 11.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.3411, allocations: 6.875 kB / 0.5231 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.3411, allocations: 9.438 kB / 0.5231 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.532e-05/0.3412, allocations: 8.562 kB / 0.5231 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005239/0.3417, allocations: 114 kB / 0.5232 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.3417, allocations: 11.69 kB / 0.5232 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.342, allocations: 21.33 kB / 0.5232 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.437e-05/0.3421, allocations: 23.2 kB / 0.5233 GB, free: 11.52 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.0002756/0.3424, allocations: 219.2 kB / 0.5235 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.3424, allocations: 36.48 kB / 0.5235 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008068/0.3433, allocations: 0.4915 MB / 0.524 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.3433, allocations: 12.03 kB / 0.524 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3433, allocations: 1.469 kB / 0.524 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.3433, allocations: 9.25 kB / 0.524 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.3453, allocations: 1.099 MB / 0.5251 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3453, allocations: 1.406 kB / 0.5251 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003629/0.3457, allocations: 73.81 kB / 0.5252 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.3457, allocations: 2.312 kB / 0.5252 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.371e-05/0.3457, allocations: 12.75 kB / 0.5252 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.3458, allocations: 3.578 kB / 0.5252 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3458, allocations: 5.344 kB / 0.5252 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.3469, allocations: 0.8317 MB / 0.526 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.347, allocations: 107.2 kB / 0.5261 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.61e-05/0.3471, allocations: 14.05 kB / 0.5261 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.3473, allocations: 15.56 kB / 0.5261 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.377e-05/0.3473, allocations: 26.58 kB / 0.5261 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.3474, allocations: 8.938 kB / 0.5262 GB, free: 9.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.3476, allocations: 212.8 kB / 0.5264 GB, free: 9.855 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3476, allocations: 1.5 kB / 0.5264 GB, free: 9.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005448/0.3482, allocations: 110 kB / 0.5265 GB, free: 9.84 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.001457/0.3496, allocations: 1.405 MB / 0.5278 GB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007452/0.3504, allocations: 495.8 kB / 0.5283 GB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3504, allocations: 7.906 kB / 0.5283 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003143/0.3507, allocations: 228.8 kB / 0.5285 GB, free: 8.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.3513, allocations: 69.44 kB / 0.5286 GB, free: 8.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005601/0.3569, allocations: 4.389 MB / 0.5329 GB, free: 5.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.3573, allocations: 0.8681 MB / 0.5337 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.3577, allocations: 130.8 kB / 0.5339 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.3579, allocations: 143.4 kB / 0.534 GB, free: 5.094 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3579, allocations: 1.219 kB / 0.534 GB, free: 5.094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.3858, allocations: 8.02 MB / 0.5418 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.11/8.495, allocations: 17.5 kB / 0.5418 GB, free: 0.668 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