Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 107.7 kB / 17.06 MB, free: 5.992 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.00145/0.00145, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.39/1.39, 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.1756/0.1756, allocations: 38.05 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 60.09 kB / 458.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3685, allocations: 58.05 MB / 0.5041 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005425/0.374, allocations: 4.048 MB / 0.5081 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.3753, allocations: 0.8976 MB / 0.5089 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.3755, allocations: 15.16 kB / 0.509 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.3757, allocations: 46.97 kB / 0.509 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004538/0.3762, allocations: 184.2 kB / 0.5092 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.3764, allocations: 90.86 kB / 0.5093 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004861/0.3769, allocations: 403.9 kB / 0.5096 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.3772, allocations: 118.1 kB / 0.5098 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002876/0.3775, allocations: 183.9 kB / 0.5099 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.3779, allocations: 208 kB / 0.5101 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.182e-05/0.3779, allocations: 20.34 kB / 0.5101 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.221e-05/0.378, allocations: 20.97 kB / 0.5102 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.3782, allocations: 105.2 kB / 0.5103 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.3783, allocations: 148.1 kB / 0.5104 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.3788, allocations: 321.5 kB / 0.5107 GB, free: 3.434 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3788, allocations: 1.25 kB / 0.5107 GB, free: 3.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3788, allocations: 0 / 0.5107 GB, free: 3.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.3788, allocations: 0 / 0.5107 GB, free: 3.434 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001025/0.3798, allocations: 0.6269 MB / 0.5113 GB, free: 2.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3799, allocations: 13.58 kB / 0.5113 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.38, allocations: 37.2 kB / 0.5114 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.3804, allocations: 345.9 kB / 0.5117 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.3805, allocations: 21.69 kB / 0.5117 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.3805, allocations: 26.89 kB / 0.5118 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004803/0.381, allocations: 319 kB / 0.5121 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.381, allocations: 1.969 kB / 0.5121 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.381, allocations: 6.312 kB / 0.5121 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3811, allocations: 5.688 kB / 0.5121 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003611/0.3814, allocations: 222.9 kB / 0.5123 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3829, allocations: 1.341 MB / 0.5136 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.3832, allocations: 150.9 kB / 0.5137 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3834, allocations: 59.03 kB / 0.5138 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.3834, allocations: 1.766 kB / 0.5138 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.3834, allocations: 36.92 kB / 0.5138 GB, free: 1.098 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.3834, allocations: 3.938 kB / 0.5138 GB, free: 1.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008357/0.3843, allocations: 365.5 kB / 0.5142 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.3843, allocations: 82.2 kB / 0.5143 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.3846, allocations: 266.2 kB / 0.5145 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.3847, allocations: 27.56 kB / 0.5145 GB, free: 0.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3848, allocations: 211.6 kB / 0.5147 GB, free: 456 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.3849, allocations: 46.77 kB / 0.5148 GB, free: 420 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.876e-05/0.3849, allocations: 46.03 kB / 0.5148 GB, free: 388 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.385, allocations: 339.8 kB / 0.5152 GB, free: 52 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.3852, allocations: 58.2 kB / 0.5152 GB, free: 32 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.3854, allocations: 143.5 kB / 0.5153 GB, free: 15.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.3857, allocations: 232.2 kB / 0.5156 GB, free: 15.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3858, allocations: 2 kB / 0.5156 GB, free: 15.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004784/0.3862, allocations: 256.1 kB / 0.5158 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3863, allocations: 6.438 kB / 0.5158 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3863, allocations: 6.344 kB / 0.5158 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.3863, allocations: 5.922 kB / 0.5158 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.3865, allocations: 47.08 kB / 0.5159 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.3866, allocations: 6.859 kB / 0.5159 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.3867, allocations: 14.16 kB / 0.5159 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3867, allocations: 9.453 kB / 0.5159 GB, free: 15.57 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 (25): * Single equations (assignments): 25 * 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.0001811/0.3869, allocations: 165.8 kB / 0.5161 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.387, allocations: 26.28 kB / 0.5161 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004158/0.3874, allocations: 193.6 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3874, allocations: 2.875 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3874, allocations: 1.281 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3874, allocations: 1.406 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008072/0.3883, allocations: 0.5604 MB / 0.5168 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3883, allocations: 1.062 kB / 0.5168 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.3884, allocations: 30.8 kB / 0.5169 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3884, allocations: 5.156 kB / 0.5169 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.3885, allocations: 7.078 kB / 0.5169 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.3885, allocations: 4.969 kB / 0.5169 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3885, allocations: 1.125 kB / 0.5169 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003745/0.3889, allocations: 297.3 kB / 0.5172 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.389, allocations: 97.48 kB / 0.5173 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.103e-05/0.389, allocations: 6.312 kB / 0.5173 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.3891, allocations: 5.656 kB / 0.5173 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.3892, allocations: 13.38 kB / 0.5173 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.3892, allocations: 4.391 kB / 0.5173 GB, free: 14.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002254/0.3894, allocations: 188 kB / 0.5175 GB, free: 14.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3894, allocations: 0 / 0.5175 GB, free: 14.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.3898, allocations: 49 kB / 0.5175 GB, free: 14.45 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 16 * 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.0001127/0.3899, allocations: 98.97 kB / 0.5176 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000331/0.3902, allocations: 157.4 kB / 0.5178 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3903, allocations: 0.75 kB / 0.5178 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.3904, allocations: 83.62 kB / 0.5178 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.391, allocations: 53.86 kB / 0.5179 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3921, allocations: 0.5344 MB / 0.5184 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.3926, allocations: 0.7844 MB / 0.5192 GB, free: 13.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.3927, allocations: 47.61 kB / 0.5192 GB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.941e-05/0.3928, allocations: 31.3 kB / 0.5192 GB, free: 13.19 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3928, allocations: 0 / 0.5192 GB, free: 13.19 MB / 398.1 MB Notification: Performance of Templates: time 0.006134/0.3989, allocations: 2.25 MB / 0.5214 GB, free: 13 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches