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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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.005867/0.005867, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001497/0.001497, allocations: 187.9 kB / 16.67 MB, free: 5.934 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.281/1.281, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.518/2.518, allocations: 482.6 MB / 0.755 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 67.16 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2882, allocations: 162.3 MB / 1.242 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003585/0.2918, allocations: 2.514 MB / 1.244 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.293, allocations: 0.7711 MB / 1.245 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.346e-05/0.2931, allocations: 4 kB / 1.245 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.2941, allocations: 0.5258 MB / 1.246 GB, free: 5.102 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.2944, allocations: 115.5 kB / 1.246 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.2946, allocations: 107.8 kB / 1.246 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.2949, allocations: 191.4 kB / 1.246 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003174/0.2952, allocations: 166.4 kB / 1.246 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.024e-05/0.2953, allocations: 79.7 kB / 1.246 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.2955, allocations: 99.64 kB / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.2956, allocations: 16 kB / 1.246 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.2957, allocations: 111.8 kB / 1.246 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.365e-05/0.2958, allocations: 51.89 kB / 1.246 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.776e-05/0.2959, allocations: 71.66 kB / 1.247 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.2962, allocations: 227.1 kB / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2962, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2962, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2962, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9669 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.0005684/0.2968, allocations: 458.9 kB / 1.247 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.2968, allocations: 11.97 kB / 1.247 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.2969, allocations: 50.73 kB / 1.247 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003289/0.2972, allocations: 44.8 kB / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.2975, allocations: 220.2 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2975, allocations: 4.656 kB / 1.247 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.155e-05/0.2975, allocations: 12.38 kB / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.2978, allocations: 236.3 kB / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.2979, allocations: 0 / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.2979, allocations: 11.98 kB / 1.248 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.775e-05/0.2979, allocations: 12.27 kB / 1.248 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.2981, allocations: 144.7 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.2992, allocations: 1.131 MB / 1.249 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.921e-05/0.2992, allocations: 38.56 kB / 1.249 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.516e-05/0.2993, allocations: 20.86 kB / 1.249 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.348e-06/0.2993, allocations: 0 / 1.249 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.2993, allocations: 38.58 kB / 1.249 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 2.575e-06/0.2993, allocations: 4 kB / 1.249 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0001752/0.2995, allocations: 81.47 kB / 1.249 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.2995, allocations: 51.41 kB / 1.249 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.2997, allocations: 172.2 kB / 1.249 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.2997, allocations: 29.7 kB / 1.249 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.838e-05/0.2998, allocations: 151.7 kB / 1.25 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.157e-05/0.2998, allocations: 11.84 kB / 1.25 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.2999, allocations: 33.7 kB / 1.25 GB, free: 0.6367 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3, allocations: 314.8 kB / 1.25 GB, free: 328 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.648e-05/0.3001, allocations: 28.84 kB / 1.25 GB, free: 296 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.74e-05/0.3002, allocations: 104 kB / 1.25 GB, free: 160 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.3003, allocations: 117.3 kB / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3003, allocations: 0 / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002024/0.3005, allocations: 145.6 kB / 1.25 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.3005, allocations: 8 kB / 1.25 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3005, allocations: 4 kB / 1.25 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3006, allocations: 7.938 kB / 1.25 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.3007, allocations: 27.92 kB / 1.25 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3007, allocations: 0 / 1.25 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.017e-05/0.3008, allocations: 19.89 kB / 1.25 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.3008, allocations: 4.312 kB / 1.25 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.488e-05/0.3009, allocations: 124.1 kB / 1.25 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.543e-05/0.301, allocations: 93.38 kB / 1.251 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001244/0.3011, allocations: 129.2 kB / 1.251 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.3011, allocations: 0 / 1.251 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001802/0.3013, allocations: 129.4 kB / 1.251 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/0.3013, allocations: 14.02 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-06/0.3013, allocations: 0 / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.917e-06/0.3013, allocations: 4 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.217e-05/0.3014, allocations: 28.19 kB / 1.251 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3014, allocations: 11.98 kB / 1.251 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.104e-05/0.3015, allocations: 19.89 kB / 1.251 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.3015, allocations: 4 kB / 1.251 GB, free: 15.16 MB / 0.9825 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.791e-05/0.3016, allocations: 192.1 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.3016, allocations: 7.953 kB / 1.251 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.3017, allocations: 16.88 kB / 1.251 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3017, allocations: 0 / 1.251 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3017, allocations: 4 kB / 1.251 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.614e-06/0.3017, allocations: 4 kB / 1.251 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.3021, allocations: 477 kB / 1.252 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3021, allocations: 0 / 1.252 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.322e-05/0.3021, allocations: 8 kB / 1.252 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3022, allocations: 0 / 1.252 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.3022, allocations: 0 / 1.252 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.3022, allocations: 8.125 kB / 1.252 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3022, allocations: 0 / 1.252 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.3023, allocations: 115.5 kB / 1.252 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.3024, allocations: 89.02 kB / 1.252 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3024, allocations: 4 kB / 1.252 GB, free: 14.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.456e-05/0.3024, allocations: 8 kB / 1.252 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.3025, allocations: 3.984 kB / 1.252 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3025, allocations: 4 kB / 1.252 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.784e-05/0.3026, allocations: 120 kB / 1.252 GB, free: 14 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3026, allocations: 0 / 1.252 GB, free: 14 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003107/0.3029, allocations: 55.89 kB / 1.252 GB, free: 13.95 MB / 0.9825 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.0003979/0.3033, allocations: 0.6505 MB / 1.253 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001874/0.3035, allocations: 112.7 kB / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3035, allocations: 0 / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.572e-05/0.3035, allocations: 16 kB / 1.253 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002314/0.3037, allocations: 19.92 kB / 1.253 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.3054, allocations: 1.76 MB / 1.254 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.3057, allocations: 0.7163 MB / 1.255 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.76e-05/0.3058, allocations: 32.61 kB / 1.255 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.361e-05/0.3058, allocations: 31.44 kB / 1.255 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3058, allocations: 0 / 1.255 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5199/0.8258, allocations: 2.4 MB / 1.258 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.56, allocations: 20.23 kB / 1.258 GB, free: 8.086 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > 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