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.004717/0.004717, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001319/0.001319, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.304/2.304, allocations: 437.1 MB / 0.7106 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 59.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.233, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003394/0.2364, allocations: 2.512 MB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.2376, allocations: 0.7751 MB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.266e-05/0.2377, allocations: 4 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009632/0.2386, allocations: 0.5296 MB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.2388, allocations: 111.5 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.2391, allocations: 111.6 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.2393, allocations: 191.4 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002942/0.2396, allocations: 166.4 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.37e-05/0.2397, allocations: 79.7 kB / 1.171 GB, free: 2.777 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.2399, allocations: 95.64 kB / 1.171 GB, free: 2.684 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.2399, allocations: 12 kB / 1.171 GB, free: 2.672 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001747/0.2401, allocations: 119.7 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.914e-05/0.2402, allocations: 55.88 kB / 1.171 GB, free: 2.5 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.284e-05/0.2402, allocations: 67.67 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.2405, allocations: 227.1 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.2405, allocations: 0 / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2405, allocations: 0 / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2405, allocations: 0 / 1.171 GB, free: 2.211 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.0005162/0.2411, allocations: 451 kB / 1.172 GB, free: 1.719 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.876e-05/0.2411, allocations: 8.031 kB / 1.172 GB, free: 1.711 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.023e-05/0.2411, allocations: 54.67 kB / 1.172 GB, free: 1.648 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/0.2415, allocations: 48.8 kB / 1.172 GB, free: 1.602 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.2417, allocations: 216.2 kB / 1.172 GB, free: 1.352 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.2417, allocations: 16.64 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.913e-05/0.2417, allocations: 12.38 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.242, allocations: 231.1 kB / 1.172 GB, free: 1.078 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2421, allocations: 3.938 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.2421, allocations: 4 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.801e-05/0.2421, allocations: 16.27 kB / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.2423, allocations: 144.7 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009593/0.2433, allocations: 1.131 MB / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.923e-05/0.2434, allocations: 42.56 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.876e-05/0.2434, allocations: 16.86 kB / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.2434, allocations: 0 / 1.173 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.2434, allocations: 38.64 kB / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.2434, allocations: 0 / 1.173 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0001629/0.2436, allocations: 85.47 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.2437, allocations: 51.41 kB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.2438, allocations: 169.4 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.2438, allocations: 29.7 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.434e-05/0.2439, allocations: 143.6 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.2439, allocations: 23.78 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/0.244, allocations: 37.66 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.2441, allocations: 322.8 kB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.411e-05/0.2442, allocations: 28.84 kB / 1.174 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.544e-05/0.2442, allocations: 101.1 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.2444, allocations: 121.3 kB / 1.174 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2444, allocations: 0 / 1.174 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001876/0.2446, allocations: 133.6 kB / 1.175 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.2446, allocations: 13.78 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2446, allocations: 0 / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.2446, allocations: 7.938 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.599e-05/0.2447, allocations: 23.98 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.2447, allocations: 7.938 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.944e-05/0.2448, allocations: 11.89 kB / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.2448, allocations: 12 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.91e-05/0.2449, allocations: 120.1 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.763e-05/0.245, allocations: 85.44 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001266/0.2451, allocations: 125.3 kB / 1.175 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.02e-07/0.2451, allocations: 0 / 1.175 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000177/0.2453, allocations: 133.4 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/0.2453, allocations: 7.984 kB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.2453, allocations: 4 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.847e-06/0.2453, allocations: 4 kB / 1.175 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.105e-05/0.2454, allocations: 27.88 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2454, allocations: 4 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.777e-05/0.2455, allocations: 16.25 kB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.2455, allocations: 8 kB / 1.175 GB, free: 13.52 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 9.223e-05/0.2456, allocations: 192.1 kB / 1.175 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.565e-05/0.2456, allocations: 7.953 kB / 1.175 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.2457, allocations: 17.16 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.2457, allocations: 3.938 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.2457, allocations: 0 / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.2457, allocations: 3.984 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000407/0.2461, allocations: 481.1 kB / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2461, allocations: 7.938 kB / 1.176 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.765e-05/0.2461, allocations: 4 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2461, allocations: 4 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.2462, allocations: 0 / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2462, allocations: 0 / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/0.2462, allocations: 7.984 kB / 1.176 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/0.2463, allocations: 119.6 kB / 1.176 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-05/0.2464, allocations: 89.02 kB / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.2464, allocations: 0 / 1.176 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.425e-05/0.2464, allocations: 8 kB / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.299e-05/0.2464, allocations: 11.92 kB / 1.176 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.2464, allocations: 4 kB / 1.176 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.903e-05/0.2465, allocations: 124.2 kB / 1.176 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2465, allocations: 0 / 1.176 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003002/0.2468, allocations: 51.89 kB / 1.176 GB, free: 12.28 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.0003665/0.2472, allocations: 0.65 MB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001705/0.2474, allocations: 112.6 kB / 1.177 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2474, allocations: 384 / 1.177 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.972e-05/0.2474, allocations: 12 kB / 1.177 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.2476, allocations: 23.98 kB / 1.177 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001525/0.2492, allocations: 1.741 MB / 1.179 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.2495, allocations: 0.7241 MB / 1.179 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.9e-05/0.2496, allocations: 32.61 kB / 1.18 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.2496, allocations: 31.44 kB / 1.18 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of SimCode: time 1.804e-06/0.2496, allocations: 0 / 1.18 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.049/2.299, allocations: 2.411 MB / 1.182 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/10.51, allocations: 7.625 kB / 1.182 GB, free: 6.418 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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