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.001305/0.001305, allocations: 110.2 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.001358/0.001358, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1901/0.1901, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3223, allocations: 58.07 MB / 0.5036 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.003971/0.3263, allocations: 3.428 MB / 0.507 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.3281, allocations: 1.522 MB / 0.5085 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.3283, allocations: 5.688 kB / 0.5085 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007628/0.3291, allocations: 265.1 kB / 0.5087 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000562/0.3297, allocations: 279.3 kB / 0.509 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.33, allocations: 121.9 kB / 0.5091 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.3304, allocations: 341.4 kB / 0.5094 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.3306, allocations: 128.9 kB / 0.5095 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.3309, allocations: 158.2 kB / 0.5097 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002158/0.3311, allocations: 147.7 kB / 0.5098 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.3311, allocations: 14.75 kB / 0.5099 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000514/0.3316, allocations: 337 kB / 0.5102 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.3318, allocations: 97.61 kB / 0.5103 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.3319, allocations: 106.8 kB / 0.5104 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005135/0.3324, allocations: 358.2 kB / 0.5107 GB, free: 2.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3324, allocations: 1.219 kB / 0.5107 GB, free: 2.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3324, allocations: 0 / 0.5107 GB, free: 2.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.321e-06/0.3324, allocations: 4 kB / 0.5107 GB, free: 2.914 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.0006337/0.3331, allocations: 0.5146 MB / 0.5112 GB, free: 2.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3331, allocations: 13.77 kB / 0.5112 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.539e-05/0.3332, allocations: 55.97 kB / 0.5113 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009641/0.3342, allocations: 104 kB / 0.5114 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.3346, allocations: 271.6 kB / 0.5116 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.3346, allocations: 15.75 kB / 0.5117 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.997e-05/0.3346, allocations: 20.67 kB / 0.5117 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005544/0.3352, allocations: 318.4 kB / 0.512 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.3352, allocations: 3.938 kB / 0.512 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.3353, allocations: 10.75 kB / 0.512 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.795e-05/0.3353, allocations: 13.91 kB / 0.512 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005001/0.3358, allocations: 306.8 kB / 0.5123 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3374, allocations: 1.283 MB / 0.5136 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.3376, allocations: 204.1 kB / 0.5137 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.61e-05/0.3377, allocations: 42.52 kB / 0.5138 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.3378, allocations: 2.109 kB / 0.5138 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.3378, allocations: 37.47 kB / 0.5138 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.3378, allocations: 0 / 0.5138 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003169/0.3381, allocations: 133.2 kB / 0.514 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.3381, allocations: 88.22 kB / 0.514 GB, free: 456 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.3383, allocations: 210.7 kB / 0.5142 GB, free: 320 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.3384, allocations: 33.64 kB / 0.5143 GB, free: 280 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.013e-05/0.3384, allocations: 175.9 kB / 0.5144 GB, free: 120 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.3385, allocations: 31.34 kB / 0.5145 GB, free: 96 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.044e-05/0.3385, allocations: 43.25 kB / 0.5145 GB, free: 64 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3387, allocations: 334.2 kB / 0.5148 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.253e-05/0.3388, allocations: 38.92 kB / 0.5149 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.3389, allocations: 142.8 kB / 0.515 GB, free: 15.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.3392, allocations: 197.8 kB / 0.5152 GB, free: 15.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.3392, allocations: 1.344 kB / 0.5152 GB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003853/0.3396, allocations: 207.2 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.3397, allocations: 7.469 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3397, allocations: 3.094 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.3397, allocations: 4.594 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.3399, allocations: 50.91 kB / 0.5155 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.3399, allocations: 6.375 kB / 0.5155 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.3401, allocations: 28.2 kB / 0.5155 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.3401, allocations: 8.625 kB / 0.5155 GB, free: 15.28 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.0001688/0.3403, allocations: 158.6 kB / 0.5156 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.3403, allocations: 18.23 kB / 0.5157 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002227/0.3405, allocations: 118.7 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.3406, allocations: 2.828 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3406, allocations: 1.25 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3406, allocations: 4.844 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008412/0.3414, allocations: 0.5747 MB / 0.5163 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3414, allocations: 6 kB / 0.5164 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.444e-05/0.3415, allocations: 22.3 kB / 0.5164 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.3415, allocations: 7.344 kB / 0.5164 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.3416, allocations: 7.625 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3416, allocations: 4.875 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3416, allocations: 2.281 kB / 0.5164 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003227/0.3419, allocations: 282.4 kB / 0.5167 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.37e-05/0.342, allocations: 107.1 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.3421, allocations: 10 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3422, allocations: 2.375 kB / 0.5168 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.3422, allocations: 16.7 kB / 0.5168 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.3422, allocations: 6.609 kB / 0.5168 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001557/0.3424, allocations: 154.2 kB / 0.5169 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3424, allocations: 0 / 0.5169 GB, free: 14.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000395/0.3428, allocations: 56.42 kB / 0.517 GB, free: 14.08 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.000724/0.3435, allocations: 0.8295 MB / 0.5178 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003369/0.3439, allocations: 118.7 kB / 0.5179 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3439, allocations: 0.5 kB / 0.5179 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.344, allocations: 46.83 kB / 0.518 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.3445, allocations: 35.31 kB / 0.518 GB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.3477, allocations: 2.319 MB / 0.5203 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.3482, allocations: 0.7552 MB / 0.521 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.3483, allocations: 38.97 kB / 0.521 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.3484, allocations: 57.36 kB / 0.5211 GB, free: 10.54 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3484, allocations: 0 / 0.5211 GB, free: 10.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.3749, allocations: 3.359 MB / 0.5244 GB, free: 10 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.331/8.706, allocations: 13.55 kB / 0.5244 GB, free: 9.988 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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