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.005117/0.005117, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001105/0.001106, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.381/1.381, allocations: 222.9 MB / 240.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.598/2.598, allocations: 461.9 MB / 0.7348 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 68.11 kB / 1.054 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045/1.046, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004537/1.051, allocations: 2.496 MB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001457/1.052, allocations: 0.7789 MB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.573e-05/1.052, allocations: 7.938 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001249/1.053, allocations: 0.5258 MB / 1.211 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002781/1.054, allocations: 115.5 kB / 1.212 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003153/1.054, allocations: 107.7 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003409/1.054, allocations: 199.4 kB / 1.212 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004448/1.055, allocations: 154.1 kB / 1.212 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/1.055, allocations: 83.69 kB / 1.212 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/1.055, allocations: 91.72 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/1.055, allocations: 12 kB / 1.212 GB, free: 9.07 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002536/1.056, allocations: 115.7 kB / 1.212 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001081/1.056, allocations: 59.81 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001003/1.056, allocations: 75.66 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000336/1.056, allocations: 217 kB / 1.213 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/1.056, allocations: 4 kB / 1.213 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.443e-06/1.056, allocations: 0 / 1.213 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.277e-06/1.056, allocations: 3.984 kB / 1.213 GB, free: 8.609 MB / 0.9356 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.0006845/1.057, allocations: 439.3 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/1.057, allocations: 8.031 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003944/1.057, allocations: 44.7 kB / 1.213 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/1.058, allocations: 232 kB / 1.213 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/1.058, allocations: 20.53 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.468e-05/1.058, allocations: 16.38 kB / 1.213 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/1.058, allocations: 223.3 kB / 1.214 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/1.058, allocations: 0 / 1.214 GB, free: 7.539 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/1.058, allocations: 11.98 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.326e-05/1.058, allocations: 16.27 kB / 1.214 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/1.059, allocations: 152.6 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/1.06, allocations: 1.123 MB / 1.215 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.84e-05/1.06, allocations: 42.56 kB / 1.215 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.486e-05/1.06, allocations: 12.86 kB / 1.215 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/1.06, allocations: 0 / 1.215 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/1.06, allocations: 34.56 kB / 1.215 GB, free: 6 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/1.06, allocations: 0 / 1.215 GB, free: 6 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0002099/1.06, allocations: 81.55 kB / 1.215 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/1.06, allocations: 51.41 kB / 1.215 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/1.06, allocations: 187.5 kB / 1.215 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/1.06, allocations: 29.7 kB / 1.215 GB, free: 5.625 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.878e-05/1.06, allocations: 135.4 kB / 1.215 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/1.06, allocations: 11.8 kB / 1.215 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.746e-05/1.061, allocations: 33.72 kB / 1.215 GB, free: 5.438 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.061, allocations: 322.8 kB / 1.216 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.877e-05/1.061, allocations: 20.84 kB / 1.216 GB, free: 5.09 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.663e-05/1.061, allocations: 89.44 kB / 1.216 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/1.061, allocations: 129.2 kB / 1.216 GB, free: 4.809 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.061, allocations: 8 kB / 1.216 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002092/1.061, allocations: 129.4 kB / 1.216 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/1.061, allocations: 4 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/1.061, allocations: 4 kB / 1.216 GB, free: 4.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/1.061, allocations: 7.938 kB / 1.216 GB, free: 4.652 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/1.061, allocations: 28.23 kB / 1.216 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/1.061, allocations: 8 kB / 1.216 GB, free: 4.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.017e-05/1.061, allocations: 23.69 kB / 1.216 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/1.062, allocations: 7.938 kB / 1.216 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001138/1.062, allocations: 128.1 kB / 1.216 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.663e-05/1.062, allocations: 88.38 kB / 1.216 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001356/1.062, allocations: 121.5 kB / 1.216 GB, free: 4.188 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.382e-06/1.062, allocations: 0 / 1.216 GB, free: 4.188 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001892/1.062, allocations: 133.6 kB / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.062, allocations: 14.19 kB / 1.217 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/1.062, allocations: 0 / 1.217 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.837e-06/1.062, allocations: 4 kB / 1.217 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.86e-05/1.062, allocations: 31.92 kB / 1.217 GB, free: 4.004 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/1.062, allocations: 7.938 kB / 1.217 GB, free: 3.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.037e-05/1.062, allocations: 4 kB / 1.217 GB, free: 3.992 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/1.062, allocations: 8 kB / 1.217 GB, free: 3.984 MB / 0.9356 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 9.312e-05/1.062, allocations: 184.2 kB / 1.217 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/1.062, allocations: 19.8 kB / 1.217 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/1.062, allocations: 12.94 kB / 1.217 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/1.062, allocations: 7.938 kB / 1.217 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.062, allocations: 0 / 1.217 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/1.063, allocations: 0 / 1.217 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004339/1.063, allocations: 469.1 kB / 1.217 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.063, allocations: 4.125 kB / 1.217 GB, free: 3.223 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.876e-05/1.063, allocations: 19.92 kB / 1.217 GB, free: 3.203 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/1.063, allocations: 0 / 1.217 GB, free: 3.203 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/1.063, allocations: 4 kB / 1.217 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/1.063, allocations: 0 / 1.217 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.063, allocations: 7.922 kB / 1.217 GB, free: 3.191 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/1.063, allocations: 111.5 kB / 1.217 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.309e-05/1.063, allocations: 96.91 kB / 1.218 GB, free: 2.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/1.063, allocations: 4 kB / 1.218 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.348e-05/1.063, allocations: 0 / 1.218 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.924e-05/1.063, allocations: 7.938 kB / 1.218 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/1.063, allocations: 0 / 1.218 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001033/1.063, allocations: 136.2 kB / 1.218 GB, free: 2.797 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/1.063, allocations: 3.938 kB / 1.218 GB, free: 2.793 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003573/1.064, allocations: 55.84 kB / 1.218 GB, free: 2.738 MB / 0.9356 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.0001115/1.064, allocations: 95.25 kB / 1.218 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002191/1.064, allocations: 112.8 kB / 1.218 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/1.064, allocations: 0 / 1.218 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.909e-05/1.064, allocations: 16.19 kB / 1.218 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/1.064, allocations: 23.92 kB / 1.218 GB, free: 2.484 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005395/1.065, allocations: 271.1 kB / 1.218 GB, free: 2.188 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/1.065, allocations: 0.7282 MB / 1.219 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.743e-05/1.065, allocations: 24.62 kB / 1.219 GB, free: 1.406 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/1.065, allocations: 11.44 kB / 1.219 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of SimCode: time 5.21e-07/1.065, allocations: 0 / 1.219 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of Templates: time 0.003169/1.069, allocations: 0.87 MB / 1.22 GB, free: 0.5273 MB / 0.9356 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