Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.007894/0.007894, allocations: 101.6 kB / 15.73 MB, free: 6.055 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.001826/0.001826, allocations: 200.3 kB / 16.68 MB, free: 5.969 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9289/0.9301, allocations: 140.4 MB / 1.088 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004387/0.9346, allocations: 2.504 MB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001928/0.9366, allocations: 0.7793 MB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.9367, allocations: 3 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.9381, allocations: 0.5263 MB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003019/0.9384, allocations: 117 kB / 1.092 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/0.9388, allocations: 106.8 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.9391, allocations: 193.9 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004216/0.9395, allocations: 162.3 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.9397, allocations: 78 kB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.9399, allocations: 97.3 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.94, allocations: 12.28 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002395/0.9402, allocations: 109.8 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.9403, allocations: 60.67 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.9404, allocations: 72.02 kB / 1.093 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.9409, allocations: 226 kB / 1.093 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.9409, allocations: 4 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.385e-06/0.9409, allocations: 0 / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.9409, allocations: 0 / 1.093 GB, free: 2.43 MB / 0.8575 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.000758/0.9417, allocations: 444.8 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.9417, allocations: 8.594 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004739/0.9422, allocations: 43.77 kB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.9425, allocations: 227.3 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.9425, allocations: 13.97 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.9426, allocations: 13.22 kB / 1.094 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.943, allocations: 234.3 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.943, allocations: 0.6875 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.9431, allocations: 9.953 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-05/0.9431, allocations: 14.48 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.9434, allocations: 152.5 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009398/0.9443, allocations: 1.125 MB / 1.095 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.578e-05/0.9444, allocations: 40.62 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.813e-05/0.9445, allocations: 17.86 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.9445, allocations: 5.562 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.9445, allocations: 35.25 kB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.9445, allocations: 0 / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002097/0.9447, allocations: 77.91 kB / 1.095 GB, free: 360 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.484e-05/0.9448, allocations: 56.81 kB / 1.095 GB, free: 292 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.9449, allocations: 176.8 kB / 1.095 GB, free: 160 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.626e-06/0.945, allocations: 27.36 kB / 1.095 GB, free: 128 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.9451, allocations: 143.2 kB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.9451, allocations: 8.312 kB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.165e-05/0.9451, allocations: 37.73 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.9453, allocations: 320.4 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.47e-05/0.9453, allocations: 28.23 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.945e-05/0.9454, allocations: 91.36 kB / 1.096 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.9456, allocations: 129.5 kB / 1.096 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.9456, allocations: 0.7188 kB / 1.096 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002529/0.9459, allocations: 133.6 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.9459, allocations: 10.67 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.9459, allocations: 2.719 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.946, allocations: 7.5 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.9461, allocations: 26.62 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.9461, allocations: 9 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.703e-05/0.9462, allocations: 20.97 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.9462, allocations: 7.297 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000121/0.9463, allocations: 123 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.642e-05/0.9464, allocations: 91.17 kB / 1.097 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001493/0.9466, allocations: 120.2 kB / 1.097 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.332e-06/0.9466, allocations: 1.156 kB / 1.097 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002198/0.9468, allocations: 128.8 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.9468, allocations: 14.34 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.9469, allocations: 2.219 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.552e-06/0.9469, allocations: 8 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.425e-05/0.947, allocations: 21.83 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.947, allocations: 8.547 kB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.116e-05/0.947, allocations: 12.08 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.9471, allocations: 6.75 kB / 1.097 GB, free: 14.89 MB / 0.8731 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.0001054/0.9472, allocations: 187.6 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.9472, allocations: 12.5 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.9473, allocations: 13.67 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.9473, allocations: 5.594 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.9473, allocations: 0.625 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.9473, allocations: 0.7969 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005069/0.9478, allocations: 478.2 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.9478, allocations: 4.906 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.643e-05/0.9479, allocations: 7.625 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.9479, allocations: 1.594 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.9479, allocations: 1.281 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.9479, allocations: 2.328 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9479, allocations: 1.125 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001587/0.9481, allocations: 122 kB / 1.098 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.9481, allocations: 95.33 kB / 1.098 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.9482, allocations: 6.016 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.433e-05/0.9482, allocations: 1.344 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.596e-05/0.9482, allocations: 3.406 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.9482, allocations: 2.562 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001309/0.9484, allocations: 127 kB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9484, allocations: 4 kB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003753/0.9488, allocations: 56.12 kB / 1.098 GB, free: 13.89 MB / 0.8731 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.0001229/0.9489, allocations: 96.66 kB / 1.098 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002562/0.9492, allocations: 113.4 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.9492, allocations: 1.562 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.457e-05/0.9492, allocations: 20.09 kB / 1.098 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.9495, allocations: 21.16 kB / 1.098 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005641/0.9501, allocations: 270 kB / 1.098 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.9504, allocations: 0.7278 MB / 1.099 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.906e-05/0.9505, allocations: 25.11 kB / 1.099 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.315e-05/0.9505, allocations: 13.12 kB / 1.099 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.9505, allocations: 4 kB / 1.099 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of Templates: time 0.003576/0.9541, allocations: 0.8608 MB / 1.1 GB, free: 12.74 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches