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.001626/0.001626, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001836/0.001837, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.65/2.65, allocations: 437.1 MB / 0.7104 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.89 kB / 0.8693 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6049/0.6063, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004705/0.611, allocations: 2.502 MB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001414/0.6125, allocations: 0.7751 MB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.6126, allocations: 4 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.614, allocations: 0.5375 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003366/0.6144, allocations: 103.5 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.6147, allocations: 109 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002559/0.615, allocations: 191.4 kB / 1.022 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.6154, allocations: 178 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.6155, allocations: 75.77 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.6157, allocations: 91.66 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.6157, allocations: 12 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.616, allocations: 107.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.616e-05/0.6161, allocations: 55.88 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.776e-05/0.6162, allocations: 71.61 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.6165, allocations: 233.5 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.6165, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6165, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.648e-06/0.6165, allocations: 4 kB / 1.022 GB, free: 13.41 MB / 0.7794 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.000644/0.6172, allocations: 435.3 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.6172, allocations: 11.97 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.334e-05/0.6173, allocations: 54.73 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.6177, allocations: 36.81 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.6179, allocations: 220 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.6179, allocations: 12.66 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.618, allocations: 12.38 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.6183, allocations: 231.1 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.6183, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.6184, allocations: 7.984 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.52e-05/0.6184, allocations: 16.27 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.6186, allocations: 148.7 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.6197, allocations: 1.13 MB / 1.025 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.822e-05/0.6198, allocations: 46.48 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.432e-05/0.6198, allocations: 16.86 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.6199, allocations: 3.938 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.6199, allocations: 34.64 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.6199, allocations: 4 kB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.000209/0.6201, allocations: 77.53 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.6202, allocations: 55.34 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.6203, allocations: 172.6 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.6203, allocations: 29.7 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.6204, allocations: 139.4 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.6204, allocations: 11.81 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-05/0.6205, allocations: 37.61 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.862e-05/0.6206, allocations: 318.8 kB / 1.025 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.041e-05/0.6207, allocations: 32.84 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.396e-05/0.6207, allocations: 85.42 kB / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.6209, allocations: 129.2 kB / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6209, allocations: 0 / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002003/0.6211, allocations: 129.4 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.6211, allocations: 8.312 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.6211, allocations: 11.98 kB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.6211, allocations: 3.938 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.6213, allocations: 27.92 kB / 1.026 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.6213, allocations: 4 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.576e-05/0.6213, allocations: 23.78 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.6214, allocations: 4 kB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.892e-05/0.6215, allocations: 120.1 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.091e-05/0.6215, allocations: 98.31 kB / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001204/0.6217, allocations: 125.3 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.6217, allocations: 0 / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001864/0.6219, allocations: 133.3 kB / 1.026 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.6219, allocations: 7.984 kB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.6219, allocations: 4 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.859e-06/0.6219, allocations: 7.938 kB / 1.026 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.462e-05/0.622, allocations: 23.94 kB / 1.026 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.622, allocations: 11.94 kB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.693e-05/0.6221, allocations: 15.89 kB / 1.026 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.6221, allocations: 4.312 kB / 1.026 GB, free: 8.719 MB / 0.7794 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 8.293e-05/0.6222, allocations: 188.3 kB / 1.027 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.6222, allocations: 7.906 kB / 1.027 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.6222, allocations: 16.88 kB / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6223, allocations: 0 / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.6223, allocations: 0 / 1.027 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.6223, allocations: 7.938 kB / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004089/0.6227, allocations: 477 kB / 1.027 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.6227, allocations: 4.266 kB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.473e-05/0.6227, allocations: 8 kB / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6227, allocations: 0 / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.6228, allocations: 0 / 1.027 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.6228, allocations: 4 kB / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.6228, allocations: 3.938 kB / 1.027 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.6229, allocations: 119.6 kB / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.623, allocations: 85.02 kB / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.623, allocations: 0 / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.889e-05/0.623, allocations: 8 kB / 1.027 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.623, allocations: 3.984 kB / 1.027 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.6231, allocations: 8 kB / 1.027 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001041/0.6232, allocations: 129.5 kB / 1.027 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6232, allocations: 0 / 1.027 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003527/0.6235, allocations: 51.84 kB / 1.027 GB, free: 7.5 MB / 0.7794 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.0003505/0.6239, allocations: 0.6538 MB / 1.028 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.6241, allocations: 108.8 kB / 1.028 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.6241, allocations: 0 / 1.028 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.733e-05/0.6241, allocations: 16.19 kB / 1.028 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.6244, allocations: 34.59 kB / 1.028 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.626, allocations: 1.736 MB / 1.03 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.6263, allocations: 0.7241 MB / 1.031 GB, free: 4.016 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.381e-05/0.6264, allocations: 24.61 kB / 1.031 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.6265, allocations: 43.42 kB / 1.031 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.6265, allocations: 0 / 1.031 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.6502, allocations: 2.342 MB / 1.033 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.249/7.9, allocations: 11.55 kB / 1.033 GB, free: 1.676 MB / 0.7794 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 & python3 -m fmpy simulate --output-file Buildings_10_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_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.csv","/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