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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007334/0.007335, allocations: 97.03 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.001691/0.001691, allocations: 195.8 kB / 16.67 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.611/2.611, allocations: 437 MB / 0.7105 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3276, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003953/0.3316, allocations: 2.501 MB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.333, allocations: 0.7829 MB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.3332, allocations: 4 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.3345, allocations: 0.5335 MB / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003262/0.3348, allocations: 99.55 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.3352, allocations: 111.7 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.3354, allocations: 191.4 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003493/0.3358, allocations: 166.1 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.3359, allocations: 83.73 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.3362, allocations: 91.66 kB / 1.171 GB, free: 2.711 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.3362, allocations: 16 kB / 1.171 GB, free: 2.695 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002225/0.3364, allocations: 115.7 kB / 1.171 GB, free: 2.582 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.569e-05/0.3365, allocations: 51.89 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.204e-05/0.3366, allocations: 71.67 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003189/0.3369, allocations: 219 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3369, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3369, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.3369, allocations: 0 / 1.171 GB, free: 2.25 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.0006762/0.3376, allocations: 459.2 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3377, allocations: 12.03 kB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.574e-05/0.3377, allocations: 46.73 kB / 1.172 GB, free: 1.684 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003797/0.3381, allocations: 40.72 kB / 1.172 GB, free: 1.645 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.3384, allocations: 220.1 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.3384, allocations: 8.656 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.3384, allocations: 12.38 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.3388, allocations: 231.1 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.3388, allocations: 3.938 kB / 1.172 GB, free: 1.121 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.3388, allocations: 4 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.152e-05/0.3388, allocations: 20.27 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.3391, allocations: 148.7 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.3401, allocations: 1.123 MB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.664e-05/0.3402, allocations: 42.56 kB / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.747e-05/0.3403, allocations: 24.92 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.3403, allocations: 4 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.3403, allocations: 30.56 kB / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.173e-06/0.3403, allocations: 0 / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0002001/0.3405, allocations: 89.39 kB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.3406, allocations: 51.41 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.3407, allocations: 173.3 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.3408, allocations: 29.64 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.3409, allocations: 143.4 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.3409, allocations: 19.8 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.466e-05/0.3409, allocations: 29.7 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3411, allocations: 326.8 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.272e-05/0.3411, allocations: 24.84 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.108e-05/0.3412, allocations: 93.38 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.3414, allocations: 121.3 kB / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3414, allocations: 0 / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001969/0.3416, allocations: 137.4 kB / 1.175 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3416, allocations: 8 kB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3416, allocations: 0 / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3416, allocations: 7.938 kB / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.3418, allocations: 23.98 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.3418, allocations: 7.938 kB / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.438e-05/0.3419, allocations: 19.75 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.3419, allocations: 11.98 kB / 1.175 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.25e-05/0.342, allocations: 120.1 kB / 1.175 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.785e-05/0.3421, allocations: 93.61 kB / 1.175 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001175/0.3422, allocations: 117.3 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.503e-06/0.3422, allocations: 7.938 kB / 1.175 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001926/0.3424, allocations: 129.4 kB / 1.175 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.3424, allocations: 6.344 kB / 1.175 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3424, allocations: 4 kB / 1.175 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.831e-06/0.3424, allocations: 4 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.513e-05/0.3425, allocations: 31.86 kB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.3425, allocations: 4.312 kB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.267e-05/0.3426, allocations: 15.94 kB / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.3426, allocations: 4 kB / 1.175 GB, free: 13.56 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 9.745e-05/0.3427, allocations: 188.2 kB / 1.175 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/0.3427, allocations: 15.75 kB / 1.175 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.3428, allocations: 20.86 kB / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3428, allocations: 0 / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3428, allocations: 0 / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.3428, allocations: 0 / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.3432, allocations: 477.1 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3432, allocations: 0 / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.095e-05/0.3433, allocations: 4 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3433, allocations: 4 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.3433, allocations: 8.219 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3433, allocations: 0 / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3433, allocations: 8.125 kB / 1.176 GB, free: 12.77 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.3434, allocations: 119.5 kB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.3435, allocations: 92.92 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.3435, allocations: 3.984 kB / 1.176 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.656e-05/0.3436, allocations: 4 kB / 1.176 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.3436, allocations: 4 kB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-06/0.3436, allocations: 4 kB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.789e-05/0.3437, allocations: 128.2 kB / 1.176 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3437, allocations: 0 / 1.176 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003529/0.3441, allocations: 55.78 kB / 1.176 GB, free: 12.32 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.0004985/0.3446, allocations: 0.646 MB / 1.177 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.3448, allocations: 116.9 kB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3448, allocations: 0 / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.44e-05/0.3448, allocations: 15.98 kB / 1.177 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.3451, allocations: 23.61 kB / 1.177 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3468, allocations: 1.737 MB / 1.179 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.3471, allocations: 0.7241 MB / 1.179 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.086e-05/0.3472, allocations: 28.62 kB / 1.179 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.863e-05/0.3473, allocations: 35.36 kB / 1.179 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.3473, allocations: 0 / 1.179 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.3668, allocations: 2.401 MB / 1.182 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.111, allocations: 4.062 kB / 1.182 GB, free: 6.473 MB / 0.9356 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > 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