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.007257/0.007257, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001717/0.001717, allocations: 194.1 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.351/1.351, 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 9.1.3-maint.9.1.x/package.mo): time 2.353/2.353, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002506/0.002507, allocations: 62.72 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3091, allocations: 140.4 MB / 1.087 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003766/0.3129, allocations: 2.503 MB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.3143, allocations: 0.7789 MB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.3144, allocations: 7.938 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.3158, allocations: 0.5275 MB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.3161, allocations: 103.5 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003119/0.3164, allocations: 111.7 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002579/0.3167, allocations: 195.4 kB / 1.092 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/0.3171, allocations: 166.4 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.3172, allocations: 83.69 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.3174, allocations: 91.7 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.3175, allocations: 16 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.3177, allocations: 111.7 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.3177, allocations: 59.81 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.376e-05/0.3178, allocations: 71.67 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.3182, allocations: 223.1 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3182, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3182, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.3182, allocations: 0 / 1.092 GB, free: 12.99 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.0006659/0.3189, allocations: 451 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3189, allocations: 8.031 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.352e-05/0.319, allocations: 54.67 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003959/0.3194, allocations: 44.8 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.3196, allocations: 224.1 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.3197, allocations: 8.656 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.3197, allocations: 12.38 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.3201, allocations: 234.8 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3201, allocations: 3.938 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.3201, allocations: 12 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.3202, allocations: 12.27 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.3204, allocations: 148.7 kB / 1.094 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.3216, allocations: 1.131 MB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.84e-05/0.3217, allocations: 42.55 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.794e-05/0.3217, allocations: 16.86 kB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.3217, allocations: 0 / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.3218, allocations: 34.56 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3218, allocations: 0 / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.000218/0.322, allocations: 85.59 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.322, allocations: 51.41 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.3222, allocations: 175 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.3222, allocations: 25.7 kB / 1.095 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.172e-05/0.3223, allocations: 147.7 kB / 1.095 GB, free: 9.797 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.3224, allocations: 11.88 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.235e-05/0.3224, allocations: 33.67 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3226, allocations: 322.8 kB / 1.096 GB, free: 9.422 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.968e-05/0.3226, allocations: 28.84 kB / 1.096 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.882e-05/0.3227, allocations: 97.38 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.3229, allocations: 125.3 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3229, allocations: 0 / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002125/0.3231, allocations: 137.4 kB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3231, allocations: 4 kB / 1.096 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3231, allocations: 4.312 kB / 1.096 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.3232, allocations: 11.94 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3233, allocations: 27.98 kB / 1.096 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3233, allocations: 3.938 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.48e-05/0.3234, allocations: 23.84 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.3234, allocations: 4 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001167/0.3235, allocations: 124.1 kB / 1.096 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.372e-05/0.3236, allocations: 95.62 kB / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001655/0.3238, allocations: 113.3 kB / 1.096 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.3238, allocations: 0 / 1.096 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001946/0.324, allocations: 137.5 kB / 1.096 GB, free: 8.352 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.324, allocations: 8 kB / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-06/0.324, allocations: 0 / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.162e-06/0.324, allocations: 4 kB / 1.096 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/0.3241, allocations: 35.8 kB / 1.096 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.3241, allocations: 4 kB / 1.096 GB, free: 8.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.621e-05/0.3242, allocations: 8 kB / 1.096 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.3242, allocations: 4 kB / 1.096 GB, free: 8.289 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 9.662e-05/0.3243, allocations: 200.3 kB / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.3244, allocations: 11.91 kB / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.3244, allocations: 16.88 kB / 1.097 GB, free: 8.059 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3244, allocations: 4 kB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3244, allocations: 0 / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3244, allocations: 288 / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004138/0.3248, allocations: 469.2 kB / 1.097 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3249, allocations: 0 / 1.097 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.629e-05/0.3249, allocations: 15.92 kB / 1.097 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3249, allocations: 3.984 kB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.3249, allocations: 0 / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3249, allocations: 4 kB / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3249, allocations: 0 / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.3251, allocations: 119.6 kB / 1.097 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.3251, allocations: 93.05 kB / 1.097 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3251, allocations: 4 kB / 1.097 GB, free: 7.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.495e-05/0.3252, allocations: 0 / 1.097 GB, free: 7.246 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.708e-05/0.3252, allocations: 0 / 1.097 GB, free: 7.246 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.3252, allocations: 4 kB / 1.097 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001024/0.3253, allocations: 136.9 kB / 1.098 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3253, allocations: 0 / 1.098 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003674/0.3257, allocations: 59.84 kB / 1.098 GB, free: 7.051 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.0003654/0.3261, allocations: 0.6499 MB / 1.098 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002004/0.3263, allocations: 107.7 kB / 1.098 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3263, allocations: 1.25 kB / 1.098 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.697e-05/0.3263, allocations: 16 kB / 1.098 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.3266, allocations: 20.23 kB / 1.098 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.3283, allocations: 1.735 MB / 1.1 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.3286, allocations: 0.728 MB / 1.101 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.136e-05/0.3287, allocations: 40.55 kB / 1.101 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.089e-05/0.3288, allocations: 31.42 kB / 1.101 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3288, allocations: 0 / 1.101 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.3467, allocations: 2.412 MB / 1.103 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.284/7.631, allocations: 7.812 kB / 1.103 GB, free: 1.18 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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