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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 114 kB / 17.08 MB, free: 5.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 194.2 kB / 20.03 MB, free: 3.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 245.7 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.002/3.002, allocations: 489.3 MB / 0.7687 GB, free: 3.805 MB / 0.6075 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.91 kB / 1.103 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9592/0.9612, allocations: 163.8 MB / 1.263 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00384/0.9651, allocations: 2.517 MB / 1.265 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001347/0.9665, allocations: 0.7698 MB / 1.266 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.9666, allocations: 11.53 kB / 1.266 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.9678, allocations: 0.5223 MB / 1.266 GB, free: 5.426 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002742/0.9681, allocations: 108.5 kB / 1.266 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.9684, allocations: 111.4 kB / 1.266 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.9687, allocations: 201.4 kB / 1.267 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.969, allocations: 161.8 kB / 1.267 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.9692, allocations: 86.48 kB / 1.267 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.9694, allocations: 95.58 kB / 1.267 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.074e-05/0.9695, allocations: 13.47 kB / 1.267 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.9697, allocations: 112.4 kB / 1.267 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.35e-05/0.9698, allocations: 61.47 kB / 1.267 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.923e-05/0.9699, allocations: 69.11 kB / 1.267 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.9702, allocations: 219.6 kB / 1.267 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.9702, allocations: 0.75 kB / 1.267 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.184e-06/0.9702, allocations: 0 / 1.267 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.9703, allocations: 4.688 kB / 1.267 GB, free: 4.898 MB / 0.9981 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.0005852/0.9709, allocations: 452.5 kB / 1.268 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.9709, allocations: 9.25 kB / 1.268 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003799/0.9713, allocations: 43.91 kB / 1.268 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.9715, allocations: 228 kB / 1.268 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.9715, allocations: 9.531 kB / 1.268 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.9716, allocations: 13.44 kB / 1.268 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.972, allocations: 237.2 kB / 1.268 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.972, allocations: 0 / 1.268 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.972, allocations: 10.05 kB / 1.268 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.972, allocations: 14.28 kB / 1.268 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002654/0.9723, allocations: 148.5 kB / 1.269 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009219/0.9732, allocations: 1.131 MB / 1.27 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.033e-05/0.9733, allocations: 44.66 kB / 1.27 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.435e-05/0.9734, allocations: 21.53 kB / 1.27 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.9734, allocations: 0.5938 kB / 1.27 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.9734, allocations: 32.95 kB / 1.27 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.9734, allocations: 0.8438 kB / 1.27 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0001991/0.9736, allocations: 81.44 kB / 1.27 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.329e-05/0.9737, allocations: 53.25 kB / 1.27 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.9738, allocations: 173.8 kB / 1.27 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.9738, allocations: 25.7 kB / 1.27 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.9739, allocations: 144.4 kB / 1.27 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.9739, allocations: 15.38 kB / 1.27 GB, free: 2.453 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.974, allocations: 34.28 kB / 1.27 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.463e-05/0.974, allocations: 320.7 kB / 1.271 GB, free: 2.109 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.899e-05/0.9741, allocations: 28.41 kB / 1.271 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.939e-05/0.9742, allocations: 93.98 kB / 1.271 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.9743, allocations: 134.1 kB / 1.271 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.9743, allocations: 0.6562 kB / 1.271 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001979/0.9745, allocations: 134.2 kB / 1.271 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.9745, allocations: 7.719 kB / 1.271 GB, free: 1.793 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.9745, allocations: 6 kB / 1.271 GB, free: 1.789 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.9746, allocations: 7.812 kB / 1.271 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.9747, allocations: 26.95 kB / 1.271 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.9747, allocations: 4.406 kB / 1.271 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.306e-05/0.9748, allocations: 17.33 kB / 1.271 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.9748, allocations: 5.812 kB / 1.271 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.096e-05/0.9749, allocations: 124.8 kB / 1.271 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.178e-05/0.975, allocations: 95.58 kB / 1.271 GB, free: 1.566 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001086/0.9751, allocations: 120.7 kB / 1.271 GB, free: 1.449 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.813e-06/0.9751, allocations: 1 kB / 1.271 GB, free: 1.449 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001854/0.9753, allocations: 136.7 kB / 1.271 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.9753, allocations: 7.016 kB / 1.272 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.9753, allocations: 6.75 kB / 1.272 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.288e-06/0.9753, allocations: 3.156 kB / 1.272 GB, free: 1.371 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.819e-05/0.9754, allocations: 35.52 kB / 1.272 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.9754, allocations: 7.734 kB / 1.272 GB, free: 1.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.988e-05/0.9755, allocations: 7.969 kB / 1.272 GB, free: 1.352 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.9755, allocations: 5.984 kB / 1.272 GB, free: 1.352 MB / 0.9981 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 4.935e-05/0.9755, allocations: 188 kB / 1.272 GB, free: 1.164 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.9756, allocations: 12.81 kB / 1.272 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.9756, allocations: 14.53 kB / 1.272 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.9756, allocations: 4.719 kB / 1.272 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.9756, allocations: 4.844 kB / 1.272 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.9756, allocations: 0.75 kB / 1.272 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003493/0.976, allocations: 466.3 kB / 1.272 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.976, allocations: 1.219 kB / 1.272 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.264e-05/0.976, allocations: 10.27 kB / 1.272 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.976, allocations: 2.203 kB / 1.272 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.9761, allocations: 6.469 kB / 1.272 GB, free: 0.6836 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.9761, allocations: 5.578 kB / 1.272 GB, free: 0.6797 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.9761, allocations: 0.8125 kB / 1.272 GB, free: 0.6797 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.9762, allocations: 113 kB / 1.272 GB, free: 0.5703 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.9762, allocations: 96.59 kB / 1.272 GB, free: 476 kB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.9762, allocations: 6.312 kB / 1.272 GB, free: 472 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.277e-05/0.9763, allocations: 1.062 kB / 1.272 GB, free: 472 kB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.752e-05/0.9763, allocations: 8.016 kB / 1.272 GB, free: 468 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.9763, allocations: 1.625 kB / 1.272 GB, free: 468 kB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.425e-05/0.9764, allocations: 131.3 kB / 1.273 GB, free: 372 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.9764, allocations: 0 / 1.273 GB, free: 372 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003416/0.9768, allocations: 52.64 kB / 1.273 GB, free: 360 kB / 0.9981 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 9.109e-05/0.9769, allocations: 100.7 kB / 1.273 GB, free: 264 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.9771, allocations: 118.5 kB / 1.273 GB, free: 220 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9771, allocations: 0 / 1.273 GB, free: 220 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.411e-05/0.9771, allocations: 16.47 kB / 1.273 GB, free: 216 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.9774, allocations: 32.33 kB / 1.273 GB, free: 200 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005038/0.9779, allocations: 313.8 kB / 1.273 GB, free: 15.95 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.9783, allocations: 0.7204 MB / 1.274 GB, free: 15.25 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.017e-05/0.9784, allocations: 13.44 kB / 1.274 GB, free: 15.24 MB / 1.014 GB Notification: Performance of SimCode: time 2.3e-07/0.9784, allocations: 4.625 kB / 1.274 GB, free: 15.24 MB / 1.014 GB Notification: Performance of Templates: time 0.003532/0.9819, allocations: 1.47 MB / 1.275 GB, free: 15.11 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.536591279087588]