Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.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.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",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.00173/0.00173, allocations: 113 kB / 17.07 MB, free: 6.008 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.00217/0.002171, allocations: 189.4 kB / 18 MB, free: 5.09 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.507/1.507, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2295/0.2295, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 63.91 kB / 457.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3073, allocations: 58.05 MB / 0.5036 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.00454/0.3119, allocations: 3.432 MB / 0.507 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.3137, allocations: 1.519 MB / 0.5084 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.3139, allocations: 9.875 kB / 0.5085 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007938/0.3147, allocations: 267.1 kB / 0.5087 GB, free: 3.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006117/0.3153, allocations: 283.7 kB / 0.509 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.3157, allocations: 121.7 kB / 0.5091 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004447/0.3161, allocations: 340.7 kB / 0.5094 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.3164, allocations: 132.4 kB / 0.5095 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.3166, allocations: 150.7 kB / 0.5097 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.3169, allocations: 155.7 kB / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.3169, allocations: 13.62 kB / 0.5099 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005401/0.3175, allocations: 334.1 kB / 0.5102 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.3176, allocations: 97.52 kB / 0.5103 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.3177, allocations: 99.14 kB / 0.5104 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005192/0.3182, allocations: 366.2 kB / 0.5107 GB, free: 3.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3182, allocations: 5.125 kB / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3182, allocations: 0 / 0.5107 GB, free: 3.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3183, allocations: 0 / 0.5107 GB, free: 3.051 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006231/0.3189, allocations: 0.5114 MB / 0.5112 GB, free: 2.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3189, allocations: 13.02 kB / 0.5112 GB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.564e-05/0.319, allocations: 55.75 kB / 0.5113 GB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009547/0.3199, allocations: 107.8 kB / 0.5114 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.3203, allocations: 267.5 kB / 0.5116 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/0.3203, allocations: 16.44 kB / 0.5117 GB, free: 2.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.286e-05/0.3203, allocations: 19.56 kB / 0.5117 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004879/0.3208, allocations: 320.9 kB / 0.512 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3209, allocations: 1.438 kB / 0.512 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.3209, allocations: 9.969 kB / 0.512 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.584e-05/0.3209, allocations: 18.78 kB / 0.512 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004664/0.3214, allocations: 305.2 kB / 0.5123 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.3229, allocations: 1.282 MB / 0.5135 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.3232, allocations: 206.6 kB / 0.5137 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.583e-05/0.3233, allocations: 44.2 kB / 0.5138 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.3233, allocations: 1.812 kB / 0.5138 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.3233, allocations: 36.52 kB / 0.5138 GB, free: 0.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.954e-06/0.3233, allocations: 8.938 kB / 0.5138 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002985/0.3236, allocations: 137.3 kB / 0.514 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.3237, allocations: 80.05 kB / 0.514 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.3239, allocations: 213.9 kB / 0.5142 GB, free: 452 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.3239, allocations: 27.14 kB / 0.5143 GB, free: 420 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.026e-05/0.324, allocations: 170.7 kB / 0.5144 GB, free: 264 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.324, allocations: 32.05 kB / 0.5145 GB, free: 240 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-05/0.3241, allocations: 44.22 kB / 0.5145 GB, free: 208 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3242, allocations: 336 kB / 0.5148 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.309e-05/0.3243, allocations: 40.09 kB / 0.5149 GB, free: 15.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.3245, allocations: 145.7 kB / 0.515 GB, free: 15.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.3248, allocations: 193.2 kB / 0.5152 GB, free: 15.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3248, allocations: 1.188 kB / 0.5152 GB, free: 15.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003387/0.3251, allocations: 208.8 kB / 0.5154 GB, free: 15.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3251, allocations: 6.719 kB / 0.5154 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3252, allocations: 3.438 kB / 0.5154 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.3252, allocations: 5.594 kB / 0.5154 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.3254, allocations: 50.91 kB / 0.5155 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.3254, allocations: 5.016 kB / 0.5155 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.3255, allocations: 23.83 kB / 0.5155 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.3255, allocations: 13.58 kB / 0.5155 GB, free: 15.41 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * 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.0001483/0.3257, allocations: 159.4 kB / 0.5156 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-05/0.3258, allocations: 20.31 kB / 0.5157 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.326, allocations: 119.1 kB / 0.5158 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.326, allocations: 2.219 kB / 0.5158 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3261, allocations: 5.969 kB / 0.5158 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.3261, allocations: 0.75 kB / 0.5158 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008092/0.3269, allocations: 0.5741 MB / 0.5163 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3269, allocations: 2.562 kB / 0.5163 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.417e-05/0.327, allocations: 25.89 kB / 0.5164 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.327, allocations: 6.875 kB / 0.5164 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.327, allocations: 4.625 kB / 0.5164 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.327, allocations: 4.141 kB / 0.5164 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.327, allocations: 2.828 kB / 0.5164 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.3273, allocations: 281.8 kB / 0.5167 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.534e-05/0.3274, allocations: 99.36 kB / 0.5168 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.3275, allocations: 9.266 kB / 0.5168 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.3276, allocations: 6.812 kB / 0.5168 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.3276, allocations: 12.62 kB / 0.5168 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.3276, allocations: 6.203 kB / 0.5168 GB, free: 14.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.3278, allocations: 158.7 kB / 0.5169 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3278, allocations: 0 / 0.5169 GB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.3282, allocations: 53.95 kB / 0.517 GB, free: 14.22 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * 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.0006697/0.3288, allocations: 0.8228 MB / 0.5178 GB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000286/0.3291, allocations: 124.1 kB / 0.5179 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3291, allocations: 0.5938 kB / 0.5179 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.075e-05/0.3292, allocations: 43.88 kB / 0.518 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004258/0.3297, allocations: 38.19 kB / 0.518 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3325, allocations: 2.33 MB / 0.5203 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.333, allocations: 0.7519 MB / 0.521 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.3331, allocations: 38.53 kB / 0.521 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-05/0.3332, allocations: 58.64 kB / 0.5211 GB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3332, allocations: 0 / 0.5211 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.3593, allocations: 3.367 MB / 0.5244 GB, free: 10.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.305/8.665, allocations: 9.547 kB / 0.5244 GB, free: 10.12 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches