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.001667/0.001667, allocations: 105.6 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.001668/0.001668, 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1978/0.1978, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 67.89 kB / 458.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4219, allocations: 58.05 MB / 0.5041 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004818/0.4268, allocations: 4.051 MB / 0.5081 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.4282, allocations: 0.899 MB / 0.5089 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.4283, allocations: 14.22 kB / 0.5089 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.4286, allocations: 46.77 kB / 0.509 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005273/0.4292, allocations: 180.6 kB / 0.5092 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.4294, allocations: 95.66 kB / 0.5093 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004591/0.4299, allocations: 404 kB / 0.5096 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000251/0.4301, allocations: 117.8 kB / 0.5098 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003195/0.4305, allocations: 193.6 kB / 0.5099 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.4309, allocations: 197.5 kB / 0.5101 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.666e-05/0.4309, allocations: 19.91 kB / 0.5101 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.525e-05/0.431, allocations: 24.94 kB / 0.5102 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.4311, allocations: 106.1 kB / 0.5103 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.4313, allocations: 149.7 kB / 0.5104 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.4317, allocations: 317.2 kB / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4317, allocations: 0 / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4317, allocations: 1.094 kB / 0.5107 GB, free: 3.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.4317, allocations: 0 / 0.5107 GB, free: 3.551 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.001063/0.4328, allocations: 0.6193 MB / 0.5113 GB, free: 3.047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.4328, allocations: 12.61 kB / 0.5113 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.4329, allocations: 33.19 kB / 0.5114 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004859/0.4334, allocations: 346.7 kB / 0.5117 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.4334, allocations: 13.78 kB / 0.5117 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.4335, allocations: 27.78 kB / 0.5117 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.434, allocations: 318.4 kB / 0.512 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.434, allocations: 1.656 kB / 0.512 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.4341, allocations: 10.69 kB / 0.512 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.4341, allocations: 5.25 kB / 0.5121 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.4344, allocations: 217.8 kB / 0.5123 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.4359, allocations: 1.351 MB / 0.5136 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.4363, allocations: 140.3 kB / 0.5137 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.458e-05/0.4364, allocations: 63.64 kB / 0.5138 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.4364, allocations: 10.19 kB / 0.5138 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.4364, allocations: 32.34 kB / 0.5138 GB, free: 1.227 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.4364, allocations: 3.938 kB / 0.5138 GB, free: 1.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007944/0.4372, allocations: 359.7 kB / 0.5142 GB, free: 1.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.4373, allocations: 84.02 kB / 0.5142 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.4375, allocations: 265.4 kB / 0.5145 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.4376, allocations: 35.88 kB / 0.5145 GB, free: 0.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.4377, allocations: 202.9 kB / 0.5147 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.4377, allocations: 41.22 kB / 0.5148 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.4378, allocations: 51.23 kB / 0.5148 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.563e-05/0.4379, allocations: 335.7 kB / 0.5151 GB, free: 192 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.867e-05/0.438, allocations: 54.05 kB / 0.5152 GB, free: 176 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.4381, allocations: 151.9 kB / 0.5153 GB, free: 28 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.4384, allocations: 231.6 kB / 0.5155 GB, free: 15.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4384, allocations: 1.5 kB / 0.5156 GB, free: 15.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003969/0.4388, allocations: 255.5 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4388, allocations: 8.188 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4389, allocations: 2.562 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.4389, allocations: 7.406 kB / 0.5158 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.4391, allocations: 47.02 kB / 0.5159 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.4391, allocations: 6.781 kB / 0.5159 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.4392, allocations: 9.062 kB / 0.5159 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.4393, allocations: 10.06 kB / 0.5159 GB, free: 15.71 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.0001603/0.4394, allocations: 165.8 kB / 0.516 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.049e-05/0.4395, allocations: 22.28 kB / 0.5161 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003615/0.4399, allocations: 198.2 kB / 0.5162 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.4399, allocations: 3.406 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.4399, allocations: 0 / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.4399, allocations: 2.25 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000714/0.4406, allocations: 0.5541 MB / 0.5168 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4406, allocations: 5.062 kB / 0.5168 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.4408, allocations: 34.22 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4408, allocations: 1 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.4408, allocations: 3.328 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.4408, allocations: 5.062 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4408, allocations: 1.094 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003762/0.4412, allocations: 296.3 kB / 0.5171 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.685e-05/0.4413, allocations: 101 kB / 0.5172 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.4414, allocations: 3.328 kB / 0.5172 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.4415, allocations: 9.469 kB / 0.5172 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.4415, allocations: 9.234 kB / 0.5172 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.4415, allocations: 9.031 kB / 0.5173 GB, free: 14.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002245/0.4418, allocations: 183.7 kB / 0.5174 GB, free: 14.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4418, allocations: 0 / 0.5174 GB, free: 14.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.4421, allocations: 49.25 kB / 0.5175 GB, free: 14.59 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.0001583/0.4423, allocations: 113.8 kB / 0.5176 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.4428, allocations: 163.2 kB / 0.5177 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4428, allocations: 0.5625 kB / 0.5177 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.443, allocations: 71.56 kB / 0.5178 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006328/0.4437, allocations: 63.06 kB / 0.5179 GB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.445, allocations: 0.5181 MB / 0.5184 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005695/0.4456, allocations: 0.7863 MB / 0.5191 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001839/0.4458, allocations: 43.25 kB / 0.5192 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.4459, allocations: 23.38 kB / 0.5192 GB, free: 13.36 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4459, allocations: 0 / 0.5192 GB, free: 13.36 MB / 398.1 MB Notification: Performance of Templates: time 0.006484/0.4524, allocations: 2.303 MB / 0.5215 GB, free: 13.14 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