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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001148/0.001148, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001285/0.001285, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.645/2.645, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005488/0.0005489, allocations: 8 kB / 0.8708 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8716/0.8722, allocations: 153.6 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002868/0.8751, allocations: 2.111 MB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001036/0.8762, allocations: 0.7171 MB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.044e-05/0.8763, allocations: 7.938 kB / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.8764, allocations: 23.84 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.8766, allocations: 67.75 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.8769, allocations: 87.77 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.8771, allocations: 103.8 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.8774, allocations: 179.2 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.708e-05/0.8774, allocations: 51.84 kB / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.8776, allocations: 63.75 kB / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.635e-05/0.8776, allocations: 4 kB / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.8777, allocations: 55.89 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.513e-05/0.8778, allocations: 35.91 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.708e-05/0.8778, allocations: 53.64 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.878, allocations: 173.5 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.878, allocations: 0 / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.775e-06/0.8781, allocations: 0 / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.8781, allocations: 3.938 kB / 1.024 GB, free: 13.35 MB / 0.7794 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.0005143/0.8786, allocations: 416.9 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.8786, allocations: 11.98 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003675/0.879, allocations: 47.78 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.8792, allocations: 210.8 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.8793, allocations: 20.23 kB / 1.025 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.8793, allocations: 15.98 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.8796, allocations: 222.9 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.8796, allocations: 0 / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.8797, allocations: 4 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.209e-05/0.8797, allocations: 16.27 kB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.8799, allocations: 148.7 kB / 1.025 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009637/0.8809, allocations: 1.131 MB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.891e-05/0.881, allocations: 38.5 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.881, allocations: 3.938 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.881, allocations: 38.56 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.233e-06/0.881, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0001711/0.8812, allocations: 77.58 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.8812, allocations: 55.36 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.8814, allocations: 178.9 kB / 1.027 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.8814, allocations: 25.7 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.8815, allocations: 143.4 kB / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.8815, allocations: 19.8 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.8815, allocations: 0 / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.8816, allocations: 322.8 kB / 1.027 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.04e-05/0.8817, allocations: 20 kB / 1.027 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.241e-05/0.8818, allocations: 96.23 kB / 1.028 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.012e-05/0.8818, allocations: 35.94 kB / 1.028 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.8818, allocations: 0 / 1.028 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001852/0.882, allocations: 133.9 kB / 1.028 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003559/0.8824, allocations: 0.9715 MB / 1.029 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.8824, allocations: 0 / 1.029 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.8824, allocations: 4 kB / 1.029 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.8825, allocations: 23.98 kB / 1.029 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.8825, allocations: 7.938 kB / 1.029 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.716e-05/0.8826, allocations: 23.7 kB / 1.029 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.8826, allocations: 8 kB / 1.029 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/0.8827, allocations: 8 kB / 1.029 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001294/0.8828, allocations: 95.7 kB / 1.029 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.8828, allocations: 4 kB / 1.029 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.177e-06/0.8828, allocations: 4 kB / 1.029 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.022e-05/0.8829, allocations: 19.98 kB / 1.029 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.8829, allocations: 7.938 kB / 1.029 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.703e-05/0.883, allocations: 20.25 kB / 1.029 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.883, allocations: 8 kB / 1.029 GB, free: 8.34 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.8831, allocations: 209 kB / 1.029 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.093e-05/0.8831, allocations: 19.77 kB / 1.029 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.8832, allocations: 12.94 kB / 1.029 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.8832, allocations: 0 / 1.029 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.8832, allocations: 3.984 kB / 1.029 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.8832, allocations: 0 / 1.029 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000386/0.8836, allocations: 473.1 kB / 1.03 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.8836, allocations: 0 / 1.03 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.089e-05/0.8836, allocations: 4 kB / 1.03 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.8836, allocations: 4 kB / 1.03 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.8836, allocations: 4 kB / 1.03 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8836, allocations: 3.938 kB / 1.03 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.8837, allocations: 4 kB / 1.03 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.8838, allocations: 152.7 kB / 1.03 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.8838, allocations: 89.02 kB / 1.03 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.8839, allocations: 4 kB / 1.03 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.059e-05/0.8839, allocations: 11.94 kB / 1.03 GB, free: 7.219 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.8839, allocations: 3.938 kB / 1.03 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.8839, allocations: 4 kB / 1.03 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.093e-05/0.884, allocations: 124 kB / 1.03 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.884, allocations: 0 / 1.03 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003383/0.8844, allocations: 51.84 kB / 1.03 GB, free: 7.039 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.774e-05/0.8845, allocations: 103.2 kB / 1.03 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001877/0.8847, allocations: 103.8 kB / 1.03 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.8847, allocations: 0 / 1.03 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.8847, allocations: 17.17 kB / 1.03 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002062/0.8849, allocations: 24.23 kB / 1.03 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004755/0.8854, allocations: 316.8 kB / 1.031 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.8857, allocations: 0.728 MB / 1.031 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.643e-05/0.8858, allocations: 28.62 kB / 1.031 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.8858, allocations: 11.44 kB / 1.031 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8858, allocations: 0 / 1.031 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of Templates: time 0.002877/0.8887, allocations: 0.7941 MB / 1.032 GB, free: 4.863 MB / 0.7794 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","../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches