Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001013/0.001013, allocations: 80.39 kB / 21.47 MB, free: 3.023 MB / 18.57 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.001413/0.001413, allocations: 172.3 kB / 24.87 MB, free: 8.879 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 0.9534/0.9534, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.727/1.727, allocations: 359 MB / 0.6063 GB, free: 10.91 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.775e-05, allocations: 3.906 kB / 0.7883 GB, free: 12.26 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004426/0.004454, allocations: 2.145 MB / 0.7904 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.005588, allocations: 0.5153 MB / 0.7909 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.00571, allocations: 0 / 0.7909 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0009967/0.006706, allocations: 417.3 kB / 0.7913 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002971/0.007003, allocations: 104.4 kB / 0.7914 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.007312, allocations: 108.4 kB / 0.7915 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.007627, allocations: 214 kB / 0.7917 GB, free: 8.781 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.007973, allocations: 137.1 kB / 0.7918 GB, free: 8.645 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.008158, allocations: 115.8 kB / 0.7919 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.008448, allocations: 95.73 kB / 0.792 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.008477, allocations: 12 kB / 0.792 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.008662, allocations: 75.8 kB / 0.7921 GB, free: 8.352 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.53e-05/0.008747, allocations: 65.41 kB / 0.7922 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 7.085e-05/0.008818, allocations: 51.91 kB / 0.7922 GB, free: 8.238 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.00913, allocations: 159.4 kB / 0.7924 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.009134, allocations: 0 / 0.7924 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.276e-06/0.009137, allocations: 4.516 kB / 0.7924 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.009143, allocations: 0 / 0.7924 GB, free: 8.078 MB / 0.7448 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.0006199/0.009763, allocations: 468.9 kB / 0.7928 GB, free: 7.582 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.009804, allocations: 12.56 kB / 0.7928 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004298/0.01023, allocations: 66.38 kB / 0.7929 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.01049, allocations: 156.4 kB / 0.793 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.0105, allocations: 12.66 kB / 0.793 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.01053, allocations: 12.97 kB / 0.7931 GB, free: 7.305 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.01079, allocations: 191.9 kB / 0.7932 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.01081, allocations: 192 / 0.7932 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.01083, allocations: 9.156 kB / 0.7932 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.216e-05/0.01087, allocations: 16.2 kB / 0.7933 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.01099, allocations: 53.86 kB / 0.7933 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009385/0.01192, allocations: 1 MB / 0.7943 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.625e-05/0.01199, allocations: 35.06 kB / 0.7943 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.268e-05/0.01201, allocations: 17.67 kB / 0.7943 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.01203, allocations: 3.938 kB / 0.7943 GB, free: 5.879 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.01205, allocations: 37.39 kB / 0.7944 GB, free: 5.832 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=4): time 1.492e-06/0.01205, allocations: 0 / 0.7944 GB, free: 5.832 MB / 0.7448 GB Notification: Performance of matching and sorting (n=4): time 0.0001559/0.01221, allocations: 53.64 kB / 0.7944 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.01224, allocations: 52.91 kB / 0.7945 GB, free: 5.711 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.01237, allocations: 197.8 kB / 0.7947 GB, free: 5.5 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.01238, allocations: 25.7 kB / 0.7947 GB, free: 5.469 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.958e-05/0.01248, allocations: 198.3 kB / 0.7949 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.0125, allocations: 24.86 kB / 0.7949 GB, free: 5.246 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.158e-05/0.01255, allocations: 35.31 kB / 0.7949 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.0127, allocations: 0.5 MB / 0.7954 GB, free: 4.691 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.946e-05/0.01274, allocations: 25.66 kB / 0.7955 GB, free: 4.664 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.535e-05/0.01283, allocations: 108.5 kB / 0.7956 GB, free: 4.512 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.01295, allocations: 126.7 kB / 0.7957 GB, free: 4.344 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01295, allocations: 0.5 kB / 0.7957 GB, free: 4.344 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001828/0.01314, allocations: 111.8 kB / 0.7958 GB, free: 4.23 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.01316, allocations: 14.02 kB / 0.7958 GB, free: 4.219 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.01316, allocations: 2.562 kB / 0.7958 GB, free: 4.219 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.01317, allocations: 4 kB / 0.7958 GB, free: 4.215 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.01328, allocations: 27.94 kB / 0.7958 GB, free: 4.188 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.01329, allocations: 7.984 kB / 0.7958 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.868e-05/0.01336, allocations: 11.89 kB / 0.7959 GB, free: 4.168 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.01337, allocations: 11.94 kB / 0.7959 GB, free: 4.156 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.293e-05/0.01345, allocations: 135.8 kB / 0.796 GB, free: 4.02 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.649e-05/0.01352, allocations: 113.8 kB / 0.7961 GB, free: 3.863 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001186/0.01364, allocations: 136 kB / 0.7962 GB, free: 3.688 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.433e-06/0.01364, allocations: 0 / 0.7962 GB, free: 3.688 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001657/0.01381, allocations: 116.7 kB / 0.7963 GB, free: 3.57 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.106e-06/0.01382, allocations: 4 kB / 0.7963 GB, free: 3.566 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.01382, allocations: 4 kB / 0.7964 GB, free: 3.562 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.939e-06/0.01382, allocations: 5.656 kB / 0.7964 GB, free: 3.559 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.476e-05/0.01391, allocations: 27.92 kB / 0.7964 GB, free: 3.531 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.01391, allocations: 4 kB / 0.7964 GB, free: 3.527 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.733e-05/0.01397, allocations: 4 kB / 0.7964 GB, free: 3.523 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.01398, allocations: 4 kB / 0.7964 GB, free: 3.52 MB / 0.7448 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.0001188/0.0141, allocations: 284.9 kB / 0.7967 GB, free: 3.234 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.881e-05/0.01413, allocations: 9.016 kB / 0.7967 GB, free: 3.227 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.857e-05/0.01415, allocations: 12.34 kB / 0.7967 GB, free: 3.211 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.01416, allocations: 0 / 0.7967 GB, free: 3.211 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.01416, allocations: 1.125 kB / 0.7967 GB, free: 3.211 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.01416, allocations: 7.938 kB / 0.7967 GB, free: 3.203 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003498/0.01451, allocations: 469.1 kB / 0.7971 GB, free: 2.695 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.01452, allocations: 0 / 0.7971 GB, free: 2.695 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.016e-05/0.01455, allocations: 11.92 kB / 0.7972 GB, free: 2.684 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.01455, allocations: 5.875 kB / 0.7972 GB, free: 2.68 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-06/0.01456, allocations: 0 / 0.7972 GB, free: 2.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.01456, allocations: 0 / 0.7972 GB, free: 2.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.01456, allocations: 7.938 kB / 0.7972 GB, free: 2.672 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.01468, allocations: 112.6 kB / 0.7973 GB, free: 2.527 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.841e-05/0.0147, allocations: 19.89 kB / 0.7973 GB, free: 2.508 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.01472, allocations: 0 / 0.7973 GB, free: 2.508 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.074e-05/0.01475, allocations: 1.094 kB / 0.7973 GB, free: 2.508 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.01477, allocations: 11.92 kB / 0.7973 GB, free: 2.496 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-06/0.01477, allocations: 0 / 0.7973 GB, free: 2.496 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.304e-05/0.01484, allocations: 150 kB / 0.7974 GB, free: 2.352 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1e-07/0.01484, allocations: 0 / 0.7974 GB, free: 2.352 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004059/0.01525, allocations: 56.59 kB / 0.7975 GB, free: 2.297 MB / 0.7448 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.0001017/0.01535, allocations: 103.2 kB / 0.7976 GB, free: 2.188 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001739/0.01552, allocations: 87.09 kB / 0.7977 GB, free: 2.094 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.01553, allocations: 0 / 0.7977 GB, free: 2.094 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.521e-05/0.01555, allocations: 24.86 kB / 0.7977 GB, free: 2.066 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.01583, allocations: 32.17 kB / 0.7977 GB, free: 2.039 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.01643, allocations: 274.5 kB / 0.798 GB, free: 1.73 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.301e-05/0.01649, allocations: 71.83 kB / 0.7981 GB, free: 1.641 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.629e-05/0.01656, allocations: 20.47 kB / 0.7981 GB, free: 1.621 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.216e-05/0.01663, allocations: 82.19 kB / 0.7982 GB, free: 1.539 MB / 0.7448 GB Notification: Performance of SimCode: time 8.61e-07/0.01663, allocations: 3.938 kB / 0.7982 GB, free: 1.535 MB / 0.7448 GB Notification: Performance of Templates: time 0.003374/0.02, allocations: 0.8754 MB / 0.799 GB, free: 0.6758 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.992768918629736]