Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001405/0.001405, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.00163/0.00163, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.382/1.382, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.545/2.545, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 63.84 kB / 0.8707 GB, free: 1.426 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3564, allocations: 151.6 MB / 1.019 GB, free: 9.832 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004259/0.3607, allocations: 2.505 MB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.3621, allocations: 0.7906 MB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.876e-05/0.3622, allocations: 4 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.3634, allocations: 0.5297 MB / 1.023 GB, free: 5.977 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.3636, allocations: 103.5 kB / 1.023 GB, free: 5.875 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002627/0.3639, allocations: 107.7 kB / 1.023 GB, free: 5.77 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002284/0.3642, allocations: 191.4 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003333/0.3645, allocations: 166.1 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.805e-05/0.3646, allocations: 79.75 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.3648, allocations: 95.64 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.3649, allocations: 12 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.365, allocations: 111.8 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.825e-05/0.3651, allocations: 59.81 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.351e-05/0.3652, allocations: 67.67 kB / 1.023 GB, free: 4.992 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.3655, allocations: 227.3 kB / 1.024 GB, free: 4.77 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3655, allocations: 0 / 1.024 GB, free: 4.77 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3655, allocations: 0 / 1.024 GB, free: 4.77 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3655, allocations: 0 / 1.024 GB, free: 4.77 MB / 0.795 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.000641/0.3662, allocations: 455.2 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3662, allocations: 8.625 kB / 1.024 GB, free: 4.266 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003681/0.3666, allocations: 48.7 kB / 1.024 GB, free: 4.219 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002493/0.3668, allocations: 216.1 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.3669, allocations: 12.66 kB / 1.024 GB, free: 3.957 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.3669, allocations: 12.38 kB / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.3672, allocations: 228.8 kB / 1.025 GB, free: 3.703 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3673, allocations: 4 kB / 1.025 GB, free: 3.699 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.3673, allocations: 4 kB / 1.025 GB, free: 3.695 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.605e-05/0.3673, allocations: 24.27 kB / 1.025 GB, free: 3.672 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.3675, allocations: 140.7 kB / 1.025 GB, free: 3.535 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000989/0.3685, allocations: 1.13 MB / 1.026 GB, free: 2.273 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.76e-05/0.3686, allocations: 46.5 kB / 1.026 GB, free: 2.219 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.261e-05/0.3687, allocations: 20.88 kB / 1.026 GB, free: 2.195 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.3687, allocations: 4 kB / 1.026 GB, free: 2.191 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.68e-05/0.3687, allocations: 30.56 kB / 1.026 GB, free: 2.152 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.3687, allocations: 0 / 1.026 GB, free: 2.152 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0001784/0.3689, allocations: 73.53 kB / 1.026 GB, free: 2.074 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.496e-05/0.3689, allocations: 63.39 kB / 1.026 GB, free: 2 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.3691, allocations: 171.9 kB / 1.026 GB, free: 1.824 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3691, allocations: 25.7 kB / 1.026 GB, free: 1.793 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.396e-05/0.3692, allocations: 143.3 kB / 1.026 GB, free: 1.648 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.453e-05/0.3692, allocations: 15.84 kB / 1.026 GB, free: 1.633 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.325e-05/0.3693, allocations: 33.61 kB / 1.026 GB, free: 1.594 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.3694, allocations: 322.8 kB / 1.027 GB, free: 1.27 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.558e-05/0.3694, allocations: 32.84 kB / 1.027 GB, free: 1.234 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.06e-05/0.3695, allocations: 81.44 kB / 1.027 GB, free: 1.121 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.3696, allocations: 125.5 kB / 1.027 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3696, allocations: 0 / 1.027 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001824/0.3698, allocations: 141.2 kB / 1.027 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.3699, allocations: 4 kB / 1.027 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3699, allocations: 4 kB / 1.027 GB, free: 0.8125 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3699, allocations: 7.938 kB / 1.027 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.37, allocations: 32.23 kB / 1.027 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.37, allocations: 4 kB / 1.027 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.601e-05/0.3701, allocations: 11.84 kB / 1.027 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.3701, allocations: 12 kB / 1.027 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.024e-05/0.3702, allocations: 120.1 kB / 1.027 GB, free: 0.625 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.083e-05/0.3703, allocations: 95.48 kB / 1.027 GB, free: 0.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000109/0.3704, allocations: 117.3 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.016e-06/0.3704, allocations: 4 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000171/0.3706, allocations: 133.6 kB / 1.028 GB, free: 216 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.191e-06/0.3706, allocations: 8 kB / 1.028 GB, free: 208 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.3706, allocations: 4 kB / 1.028 GB, free: 204 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.469e-06/0.3706, allocations: 4 kB / 1.028 GB, free: 200 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.555e-05/0.3707, allocations: 27.98 kB / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.3707, allocations: 7.875 kB / 1.028 GB, free: 164 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.717e-05/0.3708, allocations: 7.906 kB / 1.028 GB, free: 156 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.3708, allocations: 12 kB / 1.028 GB, free: 144 kB / 0.795 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.187e-05/0.3709, allocations: 184.2 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.3709, allocations: 15.94 kB / 1.028 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.034e-05/0.371, allocations: 16.92 kB / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.371, allocations: 3.938 kB / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.371, allocations: 0 / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.371, allocations: 0 / 1.028 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.3714, allocations: 473 kB / 1.028 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.3714, allocations: 8.031 kB / 1.028 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.108e-05/0.3714, allocations: 4 kB / 1.028 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3715, allocations: 0 / 1.028 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.3715, allocations: 8 kB / 1.028 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3715, allocations: 0 / 1.028 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3715, allocations: 3.938 kB / 1.028 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.3716, allocations: 119.5 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.3717, allocations: 89.02 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.3717, allocations: 3.984 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.464e-05/0.3717, allocations: 0 / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.988e-05/0.3718, allocations: 8 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.3718, allocations: 0 / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.81e-05/0.3719, allocations: 124 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3719, allocations: 7.938 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003388/0.3722, allocations: 55.75 kB / 1.029 GB, free: 14.92 MB / 0.8106 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 9.253e-05/0.3723, allocations: 95.25 kB / 1.029 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001938/0.3725, allocations: 112.6 kB / 1.029 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3725, allocations: 320 / 1.029 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.517e-05/0.3725, allocations: 23.98 kB / 1.029 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.3728, allocations: 17.3 kB / 1.029 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.3733, allocations: 283.1 kB / 1.029 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.3736, allocations: 0.7247 MB / 1.03 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.115e-05/0.3736, allocations: 28.59 kB / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.246e-05/0.3737, allocations: 15.44 kB / 1.03 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.3737, allocations: 4 kB / 1.03 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of Templates: time 0.003042/0.3767, allocations: 0.8541 MB / 1.031 GB, free: 12.71 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches