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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.01127/0.01128, allocations: 96.7 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.002314/0.002314, allocations: 193.7 kB / 16.67 MB, free: 5.977 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.601/1.601, allocations: 222.9 MB / 240.4 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.891/2.891, allocations: 437 MB / 0.7105 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 71.89 kB / 1.019 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3645, allocations: 151.6 MB / 1.167 GB, free: 6.848 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004352/0.3689, allocations: 2.505 MB / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3703, allocations: 0.7867 MB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.959e-05/0.3704, allocations: 7.938 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.3718, allocations: 0.5295 MB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.3721, allocations: 111.5 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003731/0.3725, allocations: 107.7 kB / 1.171 GB, free: 2.781 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.3728, allocations: 191.4 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004201/0.3733, allocations: 163.3 kB / 1.171 GB, free: 2.426 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.3734, allocations: 83.69 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.3737, allocations: 91.66 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.3737, allocations: 16 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.3739, allocations: 115.7 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.688e-05/0.374, allocations: 51.89 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.877e-05/0.3741, allocations: 79.64 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.3745, allocations: 219.1 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3745, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3745, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.3745, allocations: 0 / 1.171 GB, free: 1.781 MB / 0.92 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.0007418/0.3753, allocations: 455 kB / 1.172 GB, free: 1.285 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3753, allocations: 8.031 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004171/0.3757, allocations: 48.8 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.376, allocations: 212.2 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3761, allocations: 24.52 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.3761, allocations: 16.36 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.3765, allocations: 223.3 kB / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3765, allocations: 0 / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.225e-05/0.3765, allocations: 4 kB / 1.172 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.645e-05/0.3766, allocations: 20.28 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.3768, allocations: 152.6 kB / 1.173 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.378, allocations: 1.131 MB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.041e-05/0.3781, allocations: 42.56 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.403e-05/0.3781, allocations: 16.86 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.3781, allocations: 0 / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.3782, allocations: 30.56 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.3782, allocations: 0 / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0002172/0.3784, allocations: 89.55 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.3784, allocations: 55.41 kB / 1.174 GB, free: 15 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.3786, allocations: 163.8 kB / 1.174 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.3786, allocations: 29.69 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.3787, allocations: 143.7 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.3787, allocations: 23.83 kB / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.3788, allocations: 29.67 kB / 1.174 GB, free: 14.6 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.3789, allocations: 326.8 kB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.157e-05/0.379, allocations: 32.84 kB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.782e-05/0.3791, allocations: 85.44 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.3793, allocations: 129.2 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3793, allocations: 0 / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002098/0.3795, allocations: 133.4 kB / 1.175 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.3795, allocations: 10.03 kB / 1.175 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3795, allocations: 0 / 1.175 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.3796, allocations: 8.25 kB / 1.175 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.3797, allocations: 31.92 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3797, allocations: 4 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.912e-05/0.3798, allocations: 11.89 kB / 1.175 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.3798, allocations: 8 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001184/0.3799, allocations: 124.1 kB / 1.175 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.48e-05/0.38, allocations: 89.38 kB / 1.175 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001503/0.3802, allocations: 121.3 kB / 1.175 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.3802, allocations: 0 / 1.175 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000204/0.3804, allocations: 137.6 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.796e-06/0.3804, allocations: 4 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.3804, allocations: 4 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.939e-06/0.3804, allocations: 4 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.605e-05/0.3805, allocations: 27.92 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3805, allocations: 11.88 kB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.907e-05/0.3806, allocations: 11.95 kB / 1.176 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.3806, allocations: 8 kB / 1.176 GB, free: 13.14 MB / 0.9356 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.0001424/0.3808, allocations: 192.2 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.3808, allocations: 7.953 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.157e-05/0.3809, allocations: 21.2 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3809, allocations: 3.938 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.3809, allocations: 3.984 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3809, allocations: 3.938 kB / 1.176 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.3814, allocations: 473.1 kB / 1.176 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3814, allocations: 0 / 1.176 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.189e-05/0.3814, allocations: 7.938 kB / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.3814, allocations: 7.984 kB / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.3814, allocations: 0 / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3814, allocations: 0 / 1.176 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3815, allocations: 4 kB / 1.176 GB, free: 12.35 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.3816, allocations: 115.7 kB / 1.176 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.992e-05/0.3817, allocations: 93 kB / 1.176 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.3817, allocations: 0 / 1.176 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.373e-05/0.3818, allocations: 0 / 1.176 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.3818, allocations: 7.938 kB / 1.176 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3818, allocations: 8 kB / 1.176 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001185/0.382, allocations: 126 kB / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.71e-07/0.382, allocations: 4 kB / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003556/0.3823, allocations: 51.89 kB / 1.177 GB, free: 11.91 MB / 0.9356 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.0001271/0.3825, allocations: 95.25 kB / 1.177 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002132/0.3827, allocations: 116.8 kB / 1.177 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3827, allocations: 4.062 kB / 1.177 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.564e-05/0.3827, allocations: 12 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.383, allocations: 23.92 kB / 1.177 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005849/0.3836, allocations: 278.8 kB / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.384, allocations: 0.7244 MB / 1.178 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.499e-05/0.3841, allocations: 24.62 kB / 1.178 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.3841, allocations: 15.44 kB / 1.178 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of SimCode: time 6.32e-07/0.3841, allocations: 0 / 1.178 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of Templates: time 0.003684/0.3878, allocations: 0.8845 MB / 1.179 GB, free: 9.676 MB / 0.9356 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 -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/jenkins/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