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.007509/0.007509, allocations: 99.52 kB / 15.73 MB, free: 6.039 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.001784/0.001784, allocations: 200.8 kB / 16.68 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.547/2.547, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.91 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2709, allocations: 151.6 MB / 1.166 GB, free: 7.34 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004363/0.2753, allocations: 2.51 MB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.2767, allocations: 0.7752 MB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.697e-05/0.2768, allocations: 0 / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.278, allocations: 0.5335 MB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.2783, allocations: 111.5 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.2786, allocations: 111.7 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.2789, allocations: 195.4 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003318/0.2792, allocations: 158.4 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.452e-05/0.2793, allocations: 79.75 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.2795, allocations: 99.58 kB / 1.171 GB, free: 2.746 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.2795, allocations: 12 kB / 1.171 GB, free: 2.734 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.2798, allocations: 115.8 kB / 1.171 GB, free: 2.621 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.805e-05/0.2798, allocations: 47.89 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.822e-05/0.2799, allocations: 75.61 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002936/0.2802, allocations: 231 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2802, allocations: 4 kB / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2803, allocations: 0 / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.699e-06/0.2803, allocations: 0 / 1.171 GB, free: 2.27 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.000636/0.2809, allocations: 455 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.281, allocations: 12.03 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.91e-05/0.281, allocations: 46.73 kB / 1.172 GB, free: 1.707 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003633/0.2814, allocations: 40.81 kB / 1.172 GB, free: 1.668 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.2816, allocations: 220.2 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.2817, allocations: 12.66 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.2817, allocations: 12.38 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.282, allocations: 235 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.2821, allocations: 0 / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.2821, allocations: 4 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.418e-05/0.2821, allocations: 20.27 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002162/0.2823, allocations: 144.7 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.2834, allocations: 1.127 MB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.696e-05/0.2834, allocations: 42.56 kB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.544e-05/0.2835, allocations: 24.88 kB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.2835, allocations: 0 / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.2835, allocations: 30.56 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.2835, allocations: 0 / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0001817/0.2837, allocations: 81.53 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.2838, allocations: 55.41 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.2839, allocations: 172.9 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.284, allocations: 25.7 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.284, allocations: 143.7 kB / 1.174 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.2841, allocations: 23.77 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.2841, allocations: 37.66 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.2842, allocations: 322.8 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.563e-05/0.2843, allocations: 28.8 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.74e-05/0.2844, allocations: 89.42 kB / 1.174 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.2845, allocations: 125.3 kB / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2845, allocations: 0 / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001931/0.2847, allocations: 133.4 kB / 1.175 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2847, allocations: 8 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2847, allocations: 0 / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.2848, allocations: 12.19 kB / 1.175 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.2849, allocations: 31.92 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.2849, allocations: 4 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.115e-05/0.285, allocations: 15.89 kB / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.285, allocations: 8 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.567e-05/0.2851, allocations: 124.1 kB / 1.175 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.189e-05/0.2852, allocations: 89.42 kB / 1.175 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001179/0.2853, allocations: 125.2 kB / 1.175 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.413e-06/0.2853, allocations: 0 / 1.175 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001791/0.2855, allocations: 137.8 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.073e-06/0.2855, allocations: 4 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.2855, allocations: 4.047 kB / 1.175 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.28e-06/0.2855, allocations: 7.984 kB / 1.175 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.768e-05/0.2856, allocations: 23.94 kB / 1.175 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2856, allocations: 7.922 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.98e-05/0.2857, allocations: 15.95 kB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.2857, allocations: 8 kB / 1.175 GB, free: 13.57 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 8.334e-05/0.2858, allocations: 188.2 kB / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.2858, allocations: 12.02 kB / 1.175 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.2858, allocations: 16.88 kB / 1.175 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.2859, allocations: 3.938 kB / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2859, allocations: 3.984 kB / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2859, allocations: 0 / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004058/0.2863, allocations: 477.1 kB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2863, allocations: 4 kB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.168e-05/0.2863, allocations: 4 kB / 1.176 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.2863, allocations: 4 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.2864, allocations: 0 / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2864, allocations: 0 / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.2864, allocations: 4 kB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.2865, allocations: 115.6 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.2866, allocations: 97.02 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.2866, allocations: 0 / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.501e-05/0.2866, allocations: 0 / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.523e-05/0.2866, allocations: 7.984 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.2866, allocations: 0 / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.581e-05/0.2868, allocations: 132.9 kB / 1.176 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2868, allocations: 4 kB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003425/0.2871, allocations: 51.89 kB / 1.176 GB, free: 12.34 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.0003567/0.2875, allocations: 0.6461 MB / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001989/0.2877, allocations: 115.6 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2877, allocations: 0 / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.658e-05/0.2877, allocations: 17.19 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.288, allocations: 20.23 kB / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.2897, allocations: 1.741 MB / 1.179 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.29, allocations: 0.728 MB / 1.179 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.171e-05/0.2901, allocations: 24.61 kB / 1.179 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.777e-05/0.2902, allocations: 39.42 kB / 1.18 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of SimCode: time 1.713e-06/0.2902, allocations: 0 / 1.18 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.3085, allocations: 2.412 MB / 1.182 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.284/7.593, allocations: 7.938 kB / 1.182 GB, free: 6.48 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 & 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