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.01127/0.01127, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.002016/0.002016, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.666/1.666, 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.483/2.483, allocations: 390.2 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 59.91 kB / 0.9508 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9462/0.9476, allocations: 140.4 MB / 1.088 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00401/0.9517, allocations: 2.508 MB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.953, allocations: 0.7794 MB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.455e-05/0.9532, allocations: 3.344 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.9544, allocations: 0.5348 MB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.9546, allocations: 107.1 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.955, allocations: 114.8 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.9552, allocations: 193.7 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.9556, allocations: 158.3 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.9558, allocations: 76.39 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.956, allocations: 94.17 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.9561, allocations: 12.25 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.9563, allocations: 117.1 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.744e-05/0.9564, allocations: 57.48 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.673e-05/0.9565, allocations: 71.14 kB / 1.093 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.9568, allocations: 222.2 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.9568, allocations: 0 / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9568, allocations: 1.156 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.493e-06/0.9569, allocations: 0 / 1.093 GB, free: 2.453 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.0006181/0.9575, allocations: 450.7 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.9575, allocations: 10.33 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004266/0.958, allocations: 51.69 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.9582, allocations: 219 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.9583, allocations: 10.03 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.279e-05/0.9583, allocations: 17.17 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.9588, allocations: 242.6 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.9588, allocations: 0 / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.273e-05/0.9588, allocations: 6.156 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-05/0.9589, allocations: 13.72 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002943/0.9592, allocations: 145 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.9603, allocations: 1.129 MB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.628e-05/0.9604, allocations: 45.03 kB / 1.095 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.062e-05/0.9605, allocations: 17.83 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.9605, allocations: 0.6875 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.9605, allocations: 35.89 kB / 1.095 GB, free: 428 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.9605, allocations: 0 / 1.095 GB, free: 428 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002573/0.9608, allocations: 78.34 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.9608, allocations: 56.56 kB / 1.095 GB, free: 308 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.961, allocations: 177.3 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.9611, allocations: 26.86 kB / 1.095 GB, free: 144 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.662e-05/0.9612, allocations: 147.2 kB / 1.096 GB, free: 8 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.9612, allocations: 7.688 kB / 1.096 GB, free: 4 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.63e-05/0.9613, allocations: 33.86 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.9614, allocations: 325.1 kB / 1.096 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.119e-05/0.9615, allocations: 27.59 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.9617, allocations: 83.73 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.9618, allocations: 133.3 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.9619, allocations: 1.469 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002718/0.9621, allocations: 133.1 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.9622, allocations: 10.95 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.9622, allocations: 2.312 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.9622, allocations: 7.688 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.9624, allocations: 26.28 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.9624, allocations: 4.547 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.69e-05/0.9625, allocations: 22.39 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.9625, allocations: 5.625 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001442/0.9627, allocations: 119 kB / 1.096 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.67e-05/0.9628, allocations: 95.97 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001525/0.9629, allocations: 116.4 kB / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.213e-06/0.9629, allocations: 5.25 kB / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000223/0.9632, allocations: 136.6 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.9632, allocations: 5.688 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.9632, allocations: 3.828 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.717e-06/0.9632, allocations: 7.781 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.45e-05/0.9633, allocations: 21.19 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.9633, allocations: 12.59 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.353e-05/0.9634, allocations: 15.94 kB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.9634, allocations: 11.12 kB / 1.097 GB, free: 14.9 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.0001073/0.9635, allocations: 184 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.9635, allocations: 8.094 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.9636, allocations: 14.31 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.9636, allocations: 5.328 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9636, allocations: 5.344 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.9636, allocations: 0 / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005185/0.9641, allocations: 478 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9642, allocations: 0.75 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/0.9642, allocations: 7.516 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.9642, allocations: 2.094 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.9642, allocations: 0.6562 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.9642, allocations: 5.812 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.9642, allocations: 1.281 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001443/0.9644, allocations: 117.9 kB / 1.098 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/0.9645, allocations: 91.78 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.9645, allocations: 2.344 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.48e-05/0.9645, allocations: 1.531 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.9646, allocations: 6.578 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.9646, allocations: 6.469 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001122/0.9647, allocations: 127.1 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9647, allocations: 0 / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003643/0.9651, allocations: 56.28 kB / 1.098 GB, free: 13.91 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.000121/0.9652, allocations: 97.84 kB / 1.098 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002534/0.9655, allocations: 117.1 kB / 1.098 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.9655, allocations: 0 / 1.098 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.392e-05/0.9655, allocations: 12.12 kB / 1.098 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.9658, allocations: 24.22 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.9664, allocations: 269 kB / 1.098 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.9668, allocations: 0.7243 MB / 1.099 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001002/0.9669, allocations: 29.91 kB / 1.099 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.9669, allocations: 12.88 kB / 1.099 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of SimCode: time 2.51e-07/0.9669, allocations: 3.938 kB / 1.099 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of Templates: time 0.00382/0.9708, allocations: 0.8659 MB / 1.1 GB, free: 12.75 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