Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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.0129/0.0129, allocations: 103 kB / 15.73 MB, free: 6.035 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.002143/0.002143, allocations: 190 kB / 16.67 MB, free: 5.965 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.3 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 66.92 kB / 0.9504 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2974, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004732/0.3021, allocations: 2.512 MB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.3037, allocations: 0.7789 MB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.3039, allocations: 4 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.3053, allocations: 0.5259 MB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.3056, allocations: 111.5 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.306, allocations: 107.7 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.3063, allocations: 199.4 kB / 1.092 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004202/0.3068, allocations: 163.5 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.307, allocations: 79.75 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.3074, allocations: 95.66 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/0.3074, allocations: 12 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.3077, allocations: 115.8 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.155e-05/0.3078, allocations: 55.81 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.863e-05/0.3079, allocations: 71.67 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003899/0.3083, allocations: 223 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3083, allocations: 4 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3083, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.36e-05/0.3083, allocations: 3.938 kB / 1.092 GB, free: 12.95 MB / 0.8575 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.0007645/0.3091, allocations: 447.3 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3092, allocations: 12.03 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.224e-05/0.3093, allocations: 50.72 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000434/0.3097, allocations: 40.72 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.31, allocations: 216.1 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.31, allocations: 12.66 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.3101, allocations: 12.38 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003891/0.3105, allocations: 242.7 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3105, allocations: 0 / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.3105, allocations: 4 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-05/0.3105, allocations: 16.27 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.3108, allocations: 148.7 kB / 1.094 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.312, allocations: 1.127 MB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.145e-05/0.3121, allocations: 38.56 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.892e-05/0.3122, allocations: 24.88 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.3122, allocations: 4 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.3122, allocations: 34.56 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.3123, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002153/0.3125, allocations: 73.53 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.3125, allocations: 55.39 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.3127, allocations: 167.1 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.3127, allocations: 25.7 kB / 1.095 GB, free: 9.926 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3128, allocations: 151.3 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.3128, allocations: 15.81 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.373e-05/0.3129, allocations: 29.7 kB / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.313, allocations: 322.8 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.872e-05/0.3131, allocations: 28.78 kB / 1.096 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.934e-05/0.3132, allocations: 89.44 kB / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.3133, allocations: 121.5 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3134, allocations: 0 / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002133/0.3136, allocations: 141.3 kB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3136, allocations: 8 kB / 1.096 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3136, allocations: 0 / 1.096 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.3136, allocations: 7.938 kB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3138, allocations: 27.92 kB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.3138, allocations: 4 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.3139, allocations: 15.84 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.3139, allocations: 11.94 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001012/0.314, allocations: 124.4 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.355e-05/0.3141, allocations: 95.36 kB / 1.096 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001304/0.3143, allocations: 121.2 kB / 1.096 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.3143, allocations: 4 kB / 1.096 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002022/0.3145, allocations: 137.2 kB / 1.096 GB, free: 8.328 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.198e-06/0.3145, allocations: 4 kB / 1.096 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3145, allocations: 4 kB / 1.096 GB, free: 8.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.401e-06/0.3145, allocations: 4 kB / 1.096 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.3146, allocations: 32.23 kB / 1.096 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3146, allocations: 7.938 kB / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.512e-05/0.3147, allocations: 11.94 kB / 1.096 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.3147, allocations: 8 kB / 1.096 GB, free: 8.258 MB / 0.8575 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.0001059/0.3148, allocations: 184.3 kB / 1.097 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.44e-05/0.3148, allocations: 7.906 kB / 1.097 GB, free: 8.062 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.9e-05/0.3149, allocations: 20.86 kB / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3149, allocations: 0 / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3149, allocations: 0 / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3149, allocations: 0 / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.3154, allocations: 481 kB / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3155, allocations: 4 kB / 1.097 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.25e-05/0.3155, allocations: 4 kB / 1.097 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.3155, allocations: 4 kB / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.3155, allocations: 0 / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3155, allocations: 4.125 kB / 1.097 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3155, allocations: 4 kB / 1.097 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.3157, allocations: 115.5 kB / 1.097 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.933e-05/0.3158, allocations: 89.02 kB / 1.097 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.3158, allocations: 3.984 kB / 1.097 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.318e-05/0.3159, allocations: 4 kB / 1.097 GB, free: 7.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.3159, allocations: 4 kB / 1.097 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.3159, allocations: 0 / 1.097 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001056/0.316, allocations: 132.9 kB / 1.097 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.316, allocations: 0 / 1.097 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003798/0.3164, allocations: 59.69 kB / 1.098 GB, free: 7.039 MB / 0.8575 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.0004314/0.3168, allocations: 0.6499 MB / 1.098 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002286/0.3171, allocations: 112.9 kB / 1.098 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3171, allocations: 4 kB / 1.098 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.865e-05/0.3171, allocations: 19.92 kB / 1.098 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.3174, allocations: 25.33 kB / 1.098 GB, free: 6.191 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.3194, allocations: 1.729 MB / 1.1 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.3198, allocations: 0.7202 MB / 1.101 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.844e-05/0.3199, allocations: 32.61 kB / 1.101 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.24e-05/0.32, allocations: 31.42 kB / 1.101 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of SimCode: time 5.51e-07/0.32, allocations: 0 / 1.101 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.3397, allocations: 2.421 MB / 1.103 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.988, allocations: 13.23 kB / 1.103 GB, free: 1.16 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches