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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009754/0.0009754, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 169.3 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.029/1.029, allocations: 177.1 MB / 203.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.135/2.135, allocations: 429.5 MB / 0.6733 GB, free: 4.027 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.913e-06/1.913e-06, allocations: 0 / 0.8781 GB, free: 6.336 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.078e-05, allocations: 2.812 kB / 0.8781 GB, free: 6.332 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.006249/0.00628, allocations: 2.16 MB / 0.8803 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.003968/0.01025, allocations: 0.5161 MB / 0.8808 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.01035, allocations: 4 kB / 0.8808 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0008897/0.01124, allocations: 422.1 kB / 0.8812 GB, free: 3.254 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.01148, allocations: 99.42 kB / 0.8813 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.01175, allocations: 116.5 kB / 0.8814 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.012, allocations: 204.3 kB / 0.8816 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003255/0.01232, allocations: 138.1 kB / 0.8817 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.01247, allocations: 116.5 kB / 0.8818 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.0127, allocations: 87.75 kB / 0.8819 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.01273, allocations: 12.69 kB / 0.8819 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.01287, allocations: 75.8 kB / 0.882 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.278e-05/0.01294, allocations: 71.25 kB / 0.882 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.002898/0.01584, allocations: 47.91 kB / 0.8821 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002852/0.01612, allocations: 159.5 kB / 0.8822 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.01613, allocations: 4 kB / 0.8822 GB, free: 2.141 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/0.01613, allocations: 0 / 0.8822 GB, free: 2.141 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.01614, allocations: 0 / 0.8822 GB, free: 2.141 MB / 0.8386 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.0004911/0.01663, allocations: 480.1 kB / 0.8827 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.01666, allocations: 8.031 kB / 0.8827 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003366/0.017, allocations: 73.33 kB / 0.8828 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.01721, allocations: 165.5 kB / 0.8829 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.01723, allocations: 9.234 kB / 0.8829 GB, free: 1.359 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.01725, allocations: 12.38 kB / 0.883 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.0175, allocations: 206.5 kB / 0.8832 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.01751, allocations: 192 / 0.8832 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.01753, allocations: 4.375 kB / 0.8832 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.4e-05/0.01756, allocations: 20.22 kB / 0.8832 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.925e-05/0.01766, allocations: 64.73 kB / 0.8832 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000779/0.01844, allocations: 1.003 MB / 0.8842 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 5.921e-05/0.0185, allocations: 35.05 kB / 0.8843 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.574e-05/0.01852, allocations: 15.69 kB / 0.8843 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.01854, allocations: 0 / 0.8843 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.01856, allocations: 37.39 kB / 0.8843 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.01856, allocations: 3.938 kB / 0.8843 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of matching and sorting (n=4): time 0.0001542/0.01871, allocations: 61.67 kB / 0.8844 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.01875, allocations: 51.41 kB / 0.8844 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.01886, allocations: 208.1 kB / 0.8846 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.01887, allocations: 25.7 kB / 0.8846 GB, free: 15.47 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.01896, allocations: 202.3 kB / 0.8848 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.301e-05/0.01898, allocations: 15.84 kB / 0.8848 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.01902, allocations: 35.36 kB / 0.8849 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.01914, allocations: 0.4922 MB / 0.8854 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.303e-05/0.01918, allocations: 23.67 kB / 0.8854 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.749e-05/0.01924, allocations: 108.5 kB / 0.8855 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.01935, allocations: 136.4 kB / 0.8856 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.01935, allocations: 0 / 0.8856 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000136/0.01949, allocations: 121.6 kB / 0.8857 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.0195, allocations: 4 kB / 0.8857 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.01951, allocations: 4 kB / 0.8857 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.01953, allocations: 8 kB / 0.8857 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.887e-05/0.01962, allocations: 31.91 kB / 0.8858 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.01962, allocations: 4 kB / 0.8858 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.063e-05/0.01966, allocations: 11.95 kB / 0.8858 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.01967, allocations: 8.25 kB / 0.8858 GB, free: 14.15 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.193e-05/0.01973, allocations: 146.9 kB / 0.8859 GB, free: 14 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.075e-05/0.0198, allocations: 108.5 kB / 0.886 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.701e-05/0.01989, allocations: 140.4 kB / 0.8862 GB, free: 13.67 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.002e-06/0.01989, allocations: 0 / 0.8862 GB, free: 13.67 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001218/0.02002, allocations: 113.4 kB / 0.8863 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 6.733e-06/0.02002, allocations: 8 kB / 0.8863 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-06/0.02002, allocations: 0 / 0.8863 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.306e-06/0.02003, allocations: 4 kB / 0.8863 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.553e-05/0.02008, allocations: 32.23 kB / 0.8863 GB, free: 13.51 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-06/0.02009, allocations: 4 kB / 0.8863 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.876e-05/0.02012, allocations: 19.83 kB / 0.8864 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.02013, allocations: 8 kB / 0.8864 GB, free: 13.48 MB / 0.8542 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 8.376e-05/0.02021, allocations: 272 kB / 0.8866 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.02023, allocations: 15.89 kB / 0.8866 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.02026, allocations: 12.33 kB / 0.8866 GB, free: 13.17 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.02026, allocations: 0 / 0.8866 GB, free: 13.17 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.02027, allocations: 0 / 0.8866 GB, free: 13.17 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.02027, allocations: 4 kB / 0.8866 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002769/0.02055, allocations: 499.2 kB / 0.8871 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.02055, allocations: 0 / 0.8871 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.057e-05/0.02057, allocations: 7.984 kB / 0.8871 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.02057, allocations: 4 kB / 0.8871 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.02058, allocations: 0 / 0.8871 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.02058, allocations: 11.88 kB / 0.8871 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.02058, allocations: 0 / 0.8871 GB, free: 12.59 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.304e-05/0.02067, allocations: 111.5 kB / 0.8873 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.952e-05/0.02068, allocations: 12.08 kB / 0.8873 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.0207, allocations: 4 kB / 0.8873 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.878e-05/0.02071, allocations: 7.938 kB / 0.8873 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.661e-05/0.02073, allocations: 7.922 kB / 0.8873 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-06/0.02073, allocations: 4 kB / 0.8873 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.194e-05/0.0208, allocations: 149.2 kB / 0.8874 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.0208, allocations: 0 / 0.8874 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002458/0.02104, allocations: 59.84 kB / 0.8875 GB, free: 12.21 MB / 0.8542 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 7.915e-05/0.02112, allocations: 95.23 kB / 0.8876 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001539/0.02128, allocations: 106.5 kB / 0.8877 GB, free: 12 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02128, allocations: 0 / 0.8877 GB, free: 12 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.481e-05/0.02129, allocations: 19.67 kB / 0.8877 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.02149, allocations: 25.47 kB / 0.8877 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005898/0.02208, allocations: 278.3 kB / 0.888 GB, free: 11.64 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.157e-05/0.02213, allocations: 75.83 kB / 0.8881 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.664e-05/0.0222, allocations: 20.73 kB / 0.8881 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.258e-05/0.02223, allocations: 16.5 kB / 0.8881 GB, free: 11.51 MB / 0.8542 GB Notification: Performance of SimCode: time 9.52e-07/0.02223, allocations: 7.938 kB / 0.8881 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.00256/0.02479, allocations: 0.7903 MB / 0.8889 GB, free: 10.73 MB / 0.8542 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.710700417868793]