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.006421/0.006421, allocations: 102.1 kB / 15.73 MB, free: 6.051 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.001372/0.001372, allocations: 195.7 kB / 16.67 MB, free: 5.98 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.404/2.404, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 65.3 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2435, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004838/0.2484, allocations: 2.502 MB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.25, allocations: 0.7827 MB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.2501, allocations: 8 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.2514, allocations: 0.522 MB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.2517, allocations: 111.5 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.252, allocations: 107.8 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.2523, allocations: 199.3 kB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003405/0.2526, allocations: 162.1 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.822e-05/0.2527, allocations: 83.75 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.2529, allocations: 91.66 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.253, allocations: 12 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.2532, allocations: 115.8 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.048e-05/0.2533, allocations: 59.81 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.222e-05/0.2533, allocations: 67.67 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.2536, allocations: 219 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2536, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2536, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.2536, allocations: 0 / 1.092 GB, free: 12.97 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.000592/0.2542, allocations: 459.2 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2543, allocations: 8.031 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.099e-05/0.2543, allocations: 50.73 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.2547, allocations: 40.72 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.2549, allocations: 220.1 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.2549, allocations: 8.656 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.255, allocations: 20.25 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.2553, allocations: 238.8 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.2553, allocations: 0 / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.2553, allocations: 4 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.39e-05/0.2554, allocations: 16.27 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002119/0.2556, allocations: 148.7 kB / 1.094 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009195/0.2565, allocations: 1.127 MB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.692e-05/0.2566, allocations: 42.56 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.306e-05/0.2567, allocations: 20.94 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.2567, allocations: 0 / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.2567, allocations: 34.5 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.2567, allocations: 0 / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0001799/0.2569, allocations: 81.66 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.2569, allocations: 51.41 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.2571, allocations: 167.1 kB / 1.095 GB, free: 9.973 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.2571, allocations: 29.7 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.2572, allocations: 147.3 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.185e-05/0.2572, allocations: 11.81 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.2572, allocations: 33.7 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.451e-05/0.2573, allocations: 322.8 kB / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.2574, allocations: 24.84 kB / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.392e-05/0.2575, allocations: 95.88 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.2576, allocations: 125.3 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2576, allocations: 0 / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001805/0.2578, allocations: 141.3 kB / 1.096 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.2578, allocations: 8 kB / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.2578, allocations: 0 / 1.096 GB, free: 8.953 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2578, allocations: 7.938 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.2579, allocations: 23.98 kB / 1.096 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.258, allocations: 7.938 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.82e-05/0.258, allocations: 20.16 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.2581, allocations: 11.98 kB / 1.096 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.333e-05/0.2582, allocations: 120.1 kB / 1.096 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.311e-05/0.2582, allocations: 89.42 kB / 1.096 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001085/0.2583, allocations: 125.2 kB / 1.096 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.434e-06/0.2583, allocations: 3.984 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001642/0.2585, allocations: 133.3 kB / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.835e-06/0.2585, allocations: 6.031 kB / 1.096 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-06/0.2585, allocations: 4.312 kB / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.677e-06/0.2586, allocations: 8 kB / 1.096 GB, free: 8.328 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.762e-05/0.2586, allocations: 31.86 kB / 1.096 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.2586, allocations: 4 kB / 1.096 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.923e-05/0.2587, allocations: 15.88 kB / 1.096 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.2587, allocations: 4 kB / 1.096 GB, free: 8.273 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 7.087e-05/0.2588, allocations: 188.2 kB / 1.097 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.2588, allocations: 7.906 kB / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.013e-05/0.2589, allocations: 20.86 kB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2589, allocations: 0 / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2589, allocations: 4 kB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2589, allocations: 4 kB / 1.097 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003632/0.2593, allocations: 473 kB / 1.097 GB, free: 7.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2593, allocations: 0 / 1.097 GB, free: 7.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.214e-05/0.2593, allocations: 8 kB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2593, allocations: 4.125 kB / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.2593, allocations: 0 / 1.097 GB, free: 7.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.2593, allocations: 4 kB / 1.097 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2593, allocations: 0 / 1.097 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.2594, allocations: 115.5 kB / 1.097 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.2595, allocations: 93.02 kB / 1.097 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.2595, allocations: 3.984 kB / 1.097 GB, free: 7.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.507e-05/0.2596, allocations: 4 kB / 1.097 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.165e-05/0.2596, allocations: 0 / 1.097 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.2596, allocations: 8 kB / 1.097 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.144e-05/0.2597, allocations: 128.9 kB / 1.097 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.243e-06/0.2597, allocations: 0 / 1.097 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003294/0.26, allocations: 63.62 kB / 1.098 GB, free: 7.047 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.0003113/0.2603, allocations: 0.6501 MB / 1.098 GB, free: 6.355 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.2605, allocations: 116 kB / 1.098 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2605, allocations: 0 / 1.098 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.232e-05/0.2606, allocations: 15.98 kB / 1.098 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.2608, allocations: 19.98 kB / 1.098 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.2623, allocations: 1.735 MB / 1.1 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.2625, allocations: 0.7241 MB / 1.101 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.6e-05/0.2626, allocations: 28.62 kB / 1.101 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.475e-05/0.2626, allocations: 31.42 kB / 1.101 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.2627, allocations: 0 / 1.101 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4217/0.6844, allocations: 2.405 MB / 1.103 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.76, allocations: 7.734 kB / 1.103 GB, free: 1.191 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