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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001719/0.001719, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.002086/0.002086, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.374/1.374, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.77/2.77, allocations: 469.4 MB / 0.7423 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 63.44 kB / 0.9083 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3281, allocations: 159.1 MB / 1.064 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004659/0.3329, allocations: 2.554 MB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.3344, allocations: 0.7712 MB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.3346, allocations: 7.938 kB / 1.067 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.3359, allocations: 0.5027 MB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.3362, allocations: 107.5 kB / 1.068 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.3366, allocations: 99.81 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.3369, allocations: 187.4 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003953/0.3373, allocations: 194.1 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.3374, allocations: 79.75 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.3377, allocations: 95.66 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.3377, allocations: 12 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002169/0.3379, allocations: 111.8 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.338, allocations: 63.83 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.562e-05/0.3381, allocations: 75.64 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.3384, allocations: 171.9 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3384, allocations: 3.984 kB / 1.069 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3384, allocations: 0 / 1.069 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.3384, allocations: 0 / 1.069 GB, free: 10.37 MB / 0.8419 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.0006664/0.3391, allocations: 443.3 kB / 1.069 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3392, allocations: 12.62 kB / 1.069 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003986/0.3396, allocations: 56.7 kB / 1.069 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.3398, allocations: 212.1 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.3398, allocations: 12.59 kB / 1.069 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.3399, allocations: 12.38 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003534/0.3402, allocations: 231.2 kB / 1.07 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3403, allocations: 0 / 1.07 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.3403, allocations: 8 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/0.3403, allocations: 20.2 kB / 1.07 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.3406, allocations: 156.7 kB / 1.07 GB, free: 9.125 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.3416, allocations: 1.127 MB / 1.071 GB, free: 7.867 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.634e-05/0.3417, allocations: 34.56 kB / 1.071 GB, free: 7.824 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.29e-05/0.3418, allocations: 20.94 kB / 1.071 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.3418, allocations: 0 / 1.071 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.3418, allocations: 38.56 kB / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 9.01e-07/0.3418, allocations: 0 / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0002052/0.342, allocations: 77.47 kB / 1.071 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.3421, allocations: 55.39 kB / 1.071 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.3422, allocations: 171.1 kB / 1.071 GB, free: 7.43 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.3423, allocations: 25.7 kB / 1.071 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.3423, allocations: 143.3 kB / 1.071 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.3424, allocations: 19.75 kB / 1.071 GB, free: 7.234 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.3424, allocations: 37.7 kB / 1.071 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3425, allocations: 322.8 kB / 1.072 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.559e-05/0.3426, allocations: 24.84 kB / 1.072 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.876e-05/0.3427, allocations: 89.44 kB / 1.072 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.3428, allocations: 121.2 kB / 1.072 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3428, allocations: 0 / 1.072 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001969/0.343, allocations: 137.6 kB / 1.072 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.3431, allocations: 10.19 kB / 1.072 GB, free: 6.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3431, allocations: 4 kB / 1.072 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3431, allocations: 3.938 kB / 1.072 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.3432, allocations: 27.98 kB / 1.072 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3432, allocations: 4 kB / 1.072 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.498e-05/0.3433, allocations: 19.78 kB / 1.072 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.3433, allocations: 7.938 kB / 1.072 GB, free: 6.352 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.603e-05/0.3434, allocations: 124.1 kB / 1.072 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.969e-05/0.3435, allocations: 90.45 kB / 1.072 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001162/0.3436, allocations: 117.3 kB / 1.072 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.653e-06/0.3436, allocations: 0 / 1.072 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001882/0.3438, allocations: 141.2 kB / 1.073 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/0.3438, allocations: 4 kB / 1.073 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-06/0.3438, allocations: 4 kB / 1.073 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-06/0.3438, allocations: 4 kB / 1.073 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.678e-05/0.3439, allocations: 31.92 kB / 1.073 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3439, allocations: 11.92 kB / 1.073 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.356e-05/0.344, allocations: 4.594 kB / 1.073 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.344, allocations: 8 kB / 1.073 GB, free: 5.746 MB / 0.8419 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 9.821e-05/0.3441, allocations: 192.1 kB / 1.073 GB, free: 5.551 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.3442, allocations: 7.906 kB / 1.073 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.3442, allocations: 20.91 kB / 1.073 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3442, allocations: 3.938 kB / 1.073 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3442, allocations: 0 / 1.073 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3442, allocations: 4 kB / 1.073 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000404/0.3446, allocations: 481 kB / 1.073 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3446, allocations: 0 / 1.073 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.3447, allocations: 11.94 kB / 1.073 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3447, allocations: 0 / 1.073 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.3447, allocations: 0 / 1.073 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3447, allocations: 4 kB / 1.073 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3447, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.3448, allocations: 115.7 kB / 1.073 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.221e-05/0.3449, allocations: 89.02 kB / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.3449, allocations: 7.922 kB / 1.074 GB, free: 4.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.557e-05/0.345, allocations: 4 kB / 1.074 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.598e-05/0.345, allocations: 7.938 kB / 1.074 GB, free: 4.688 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.345, allocations: 4 kB / 1.074 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.393e-05/0.3451, allocations: 124 kB / 1.074 GB, free: 4.562 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3451, allocations: 3.938 kB / 1.074 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003532/0.3455, allocations: 55.75 kB / 1.074 GB, free: 4.504 MB / 0.8419 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.0001036/0.3456, allocations: 95.25 kB / 1.074 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002033/0.3458, allocations: 120 kB / 1.074 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3458, allocations: 0 / 1.074 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.664e-05/0.3458, allocations: 19.92 kB / 1.074 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.3461, allocations: 22.28 kB / 1.074 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005662/0.3467, allocations: 354.1 kB / 1.074 GB, free: 3.859 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.347, allocations: 0.7318 MB / 1.075 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.4e-05/0.347, allocations: 15.44 kB / 1.075 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of SimCode: time 3.5e-07/0.347, allocations: 0 / 1.075 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of Templates: time 0.003118/0.3501, allocations: 1.452 MB / 1.076 GB, free: 1.641 MB / 0.8419 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches