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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(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.001901/0.001901, allocations: 110.2 kB / 16.41 MB, free: 6.465 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.002108/0.002109, allocations: 189.2 kB / 17.34 MB, free: 5.715 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.648/1.648, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.864/2.864, allocations: 474.5 MB / 0.7477 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 63.91 kB / 1.073 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8546/0.8568, allocations: 160.3 MB / 1.229 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004903/0.8617, allocations: 2.51 MB / 1.232 GB, free: 8.441 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.8635, allocations: 0.779 MB / 1.232 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.8637, allocations: 4 kB / 1.232 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.8653, allocations: 0.518 MB / 1.233 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003617/0.8657, allocations: 123.5 kB / 1.233 GB, free: 7.012 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.8661, allocations: 103.7 kB / 1.233 GB, free: 6.91 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.8664, allocations: 199.4 kB / 1.233 GB, free: 6.715 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004242/0.8669, allocations: 162.1 kB / 1.233 GB, free: 6.551 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.867, allocations: 75.77 kB / 1.233 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.8672, allocations: 95.64 kB / 1.234 GB, free: 6.383 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.8673, allocations: 12 kB / 1.234 GB, free: 6.371 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.8675, allocations: 115.8 kB / 1.234 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.39e-05/0.8676, allocations: 59.81 kB / 1.234 GB, free: 6.199 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.262e-05/0.8677, allocations: 67.67 kB / 1.234 GB, free: 6.133 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.8681, allocations: 223.7 kB / 1.234 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.8681, allocations: 3.938 kB / 1.234 GB, free: 5.914 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8681, allocations: 4 kB / 1.234 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.8682, allocations: 0 / 1.234 GB, free: 5.91 MB / 0.9512 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.0008453/0.869, allocations: 447 kB / 1.234 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.8691, allocations: 8.031 kB / 1.234 GB, free: 5.414 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000408/0.8695, allocations: 44.81 kB / 1.235 GB, free: 5.371 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.8698, allocations: 220.1 kB / 1.235 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.8698, allocations: 16.66 kB / 1.235 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.8698, allocations: 12.38 kB / 1.235 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004087/0.8703, allocations: 233.1 kB / 1.235 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.8703, allocations: 3.938 kB / 1.235 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.8703, allocations: 7.984 kB / 1.235 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/0.8704, allocations: 20.27 kB / 1.235 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.8706, allocations: 148.6 kB / 1.235 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.8719, allocations: 1.131 MB / 1.236 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.825e-05/0.872, allocations: 46.56 kB / 1.236 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.797e-05/0.872, allocations: 24.94 kB / 1.236 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.872, allocations: 0 / 1.236 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.8721, allocations: 34.5 kB / 1.236 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.8721, allocations: 0 / 1.236 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.0002412/0.8723, allocations: 77.58 kB / 1.236 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.8724, allocations: 51.41 kB / 1.236 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.8726, allocations: 180.4 kB / 1.237 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.8726, allocations: 25.7 kB / 1.237 GB, free: 2.918 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.8727, allocations: 143.7 kB / 1.237 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.8727, allocations: 15.91 kB / 1.237 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.424e-05/0.8728, allocations: 33.66 kB / 1.237 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.8729, allocations: 322.8 kB / 1.237 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.905e-05/0.873, allocations: 24.86 kB / 1.237 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.44e-05/0.8731, allocations: 93.36 kB / 1.237 GB, free: 2.242 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.8733, allocations: 121.3 kB / 1.237 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.8733, allocations: 4 kB / 1.237 GB, free: 2.086 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002067/0.8735, allocations: 137.4 kB / 1.238 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.8735, allocations: 8 kB / 1.238 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.8735, allocations: 240 / 1.238 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.8735, allocations: 7.938 kB / 1.238 GB, free: 1.93 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.8737, allocations: 27.92 kB / 1.238 GB, free: 1.902 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.8737, allocations: 4.312 kB / 1.238 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.617e-05/0.8737, allocations: 19.83 kB / 1.238 GB, free: 1.879 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.8738, allocations: 11.98 kB / 1.238 GB, free: 1.867 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001133/0.8739, allocations: 124.1 kB / 1.238 GB, free: 1.742 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.68e-05/0.874, allocations: 89.12 kB / 1.238 GB, free: 1.625 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001467/0.8741, allocations: 133.2 kB / 1.238 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.8741, allocations: 0 / 1.238 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001966/0.8743, allocations: 133.4 kB / 1.238 GB, free: 1.324 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/0.8744, allocations: 4.312 kB / 1.238 GB, free: 1.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.8744, allocations: 8 kB / 1.238 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.739e-06/0.8744, allocations: 7.938 kB / 1.238 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.379e-05/0.8745, allocations: 23.98 kB / 1.238 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.8745, allocations: 7.922 kB / 1.238 GB, free: 1.273 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.437e-05/0.8745, allocations: 7.938 kB / 1.238 GB, free: 1.266 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.8745, allocations: 12 kB / 1.238 GB, free: 1.254 MB / 0.9512 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.000111/0.8747, allocations: 187.5 kB / 1.238 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.8747, allocations: 7.953 kB / 1.238 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.8747, allocations: 20.94 kB / 1.238 GB, free: 1.031 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.8748, allocations: 3.938 kB / 1.238 GB, free: 1.027 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.8748, allocations: 3.984 kB / 1.238 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.8748, allocations: 0 / 1.238 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004788/0.8753, allocations: 473 kB / 1.239 GB, free: 0.4922 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.8753, allocations: 4 kB / 1.239 GB, free: 500 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.103e-05/0.8753, allocations: 8.125 kB / 1.239 GB, free: 492 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.8753, allocations: 4 kB / 1.239 GB, free: 488 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.8753, allocations: 0 / 1.239 GB, free: 488 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8753, allocations: 0 / 1.239 GB, free: 488 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/0.8754, allocations: 8 kB / 1.239 GB, free: 480 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.8755, allocations: 123.5 kB / 1.239 GB, free: 328 kB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.158e-05/0.8756, allocations: 89.06 kB / 1.239 GB, free: 220 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.8756, allocations: 0 / 1.239 GB, free: 220 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.427e-05/0.8756, allocations: 0 / 1.239 GB, free: 220 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.566e-05/0.8757, allocations: 7.984 kB / 1.239 GB, free: 212 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.8757, allocations: 4 kB / 1.239 GB, free: 208 kB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001106/0.8758, allocations: 124 kB / 1.239 GB, free: 84 kB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8758, allocations: 0 / 1.239 GB, free: 84 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003557/0.8762, allocations: 51.89 kB / 1.239 GB, free: 32 kB / 0.9512 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.0001426/0.8763, allocations: 103.2 kB / 1.239 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002319/0.8766, allocations: 120.8 kB / 1.239 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8766, allocations: 0 / 1.239 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.938e-05/0.8766, allocations: 24.11 kB / 1.239 GB, free: 15.78 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.8769, allocations: 29.11 kB / 1.239 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005567/0.8775, allocations: 274.8 kB / 1.24 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.8778, allocations: 0.7202 MB / 1.24 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.078e-05/0.8779, allocations: 28.61 kB / 1.24 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.878, allocations: 15.44 kB / 1.24 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.878, allocations: 0 / 1.24 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of Templates: time 0.003668/0.8816, allocations: 0.8742 MB / 1.241 GB, free: 13.79 MB / 0.9669 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 -s gbode -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/jenkins1/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