Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007681/0.0007715, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005354/0.005354, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.432/1.432, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.897/2.897, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003351, allocations: 8.812 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.3985, allocations: 159.6 MB / 1.059 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003828/0.4023, allocations: 2.203 MB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.4039, allocations: 0.7712 MB / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.4041, allocations: 4 kB / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.4043, allocations: 31.78 kB / 1.062 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004205/0.4047, allocations: 99.66 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.4051, allocations: 99.81 kB / 1.062 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.4055, allocations: 291.2 kB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/0.4059, allocations: 191.2 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.406, allocations: 55.78 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.4063, allocations: 95.64 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.4063, allocations: 8 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/0.4066, allocations: 139.7 kB / 1.063 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.774e-05/0.4067, allocations: 47.83 kB / 1.063 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.674e-05/0.4068, allocations: 93.36 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.4071, allocations: 223.5 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4071, allocations: 4 kB / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4071, allocations: 0 / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.4072, allocations: 0 / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006827/0.4078, allocations: 419.4 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.4079, allocations: 8.031 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004157/0.4083, allocations: 40.72 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.4086, allocations: 216.1 kB / 1.064 GB, free: 352 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.4086, allocations: 16.52 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.791e-05/0.4086, allocations: 20.38 kB / 1.064 GB, free: 316 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.409, allocations: 223.5 kB / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.409, allocations: 192 / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.4091, allocations: 11.94 kB / 1.064 GB, free: 60 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.61e-05/0.4091, allocations: 16.27 kB / 1.064 GB, free: 44 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.4094, allocations: 144.6 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.4105, allocations: 1.138 MB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.018e-05/0.4106, allocations: 46.55 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.497e-05/0.4106, allocations: 16.86 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.4107, allocations: 0 / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.4107, allocations: 34.64 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.4107, allocations: 0 / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0002106/0.4109, allocations: 81.53 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.411, allocations: 55.34 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.4111, allocations: 175.7 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.4112, allocations: 29.7 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.792e-05/0.4113, allocations: 139.4 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.408e-05/0.4113, allocations: 15.75 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.4113, allocations: 17.72 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4114, allocations: 318.8 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.818e-05/0.4115, allocations: 23.98 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.601e-05/0.4116, allocations: 96.62 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.4117, allocations: 125.2 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4117, allocations: 0 / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002049/0.412, allocations: 133.4 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.99e-05/0.4121, allocations: 165.8 kB / 1.066 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4121, allocations: 4 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.4121, allocations: 4 kB / 1.066 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.4122, allocations: 23.98 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.4122, allocations: 7.938 kB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.589e-05/0.4123, allocations: 11.84 kB / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.4123, allocations: 15.94 kB / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.4123, allocations: 4.781 kB / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000153/0.4125, allocations: 99.77 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4125, allocations: 7.984 kB / 1.067 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.05e-06/0.4125, allocations: 4.281 kB / 1.067 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.24e-05/0.4126, allocations: 23.98 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.4126, allocations: 3.938 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.205e-05/0.4127, allocations: 19.84 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.4127, allocations: 4 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001349/0.4128, allocations: 213.3 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.4129, allocations: 11.89 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.596e-05/0.4129, allocations: 20.92 kB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4129, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4129, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.4129, allocations: 7.938 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004073/0.4133, allocations: 469.1 kB / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4134, allocations: 0 / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.228e-05/0.4134, allocations: 8 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.4134, allocations: 3.938 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-06/0.4134, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.4134, allocations: 4 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4134, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.4136, allocations: 119.6 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/0.4136, allocations: 88.95 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.4136, allocations: 3.984 kB / 1.068 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.511e-05/0.4137, allocations: 8 kB / 1.068 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.4137, allocations: 4 kB / 1.068 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.4137, allocations: 4 kB / 1.068 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.253e-05/0.4138, allocations: 120 kB / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4138, allocations: 4 kB / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003439/0.4142, allocations: 59.69 kB / 1.068 GB, free: 11.53 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001029/0.4143, allocations: 103.2 kB / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001892/0.4145, allocations: 104.8 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4145, allocations: 8.125 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.671e-05/0.4145, allocations: 19.92 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.4148, allocations: 23.92 kB / 1.068 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005349/0.4153, allocations: 333 kB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.4157, allocations: 0.7202 MB / 1.069 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.331e-05/0.4158, allocations: 32.61 kB / 1.069 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.4158, allocations: 11.44 kB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.4158, allocations: 0 / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of Templates: time 0.003597/0.4194, allocations: 0.8131 MB / 1.07 GB, free: 9.305 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches