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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0007696/0.0007696, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.005016/0.005016, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.286/1.286, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.147/2.147, allocations: 390.9 MB / 0.6664 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003629, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5668/0.5672, allocations: 142.4 MB / 0.9552 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002155/0.5694, allocations: 2.198 MB / 0.9573 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009412/0.5704, allocations: 0.7578 MB / 0.9581 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.076e-05/0.5704, allocations: 2.375 kB / 0.9581 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.5705, allocations: 28.28 kB / 0.9581 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.5708, allocations: 104 kB / 0.9582 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.571, allocations: 110.5 kB / 0.9583 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.5712, allocations: 297.1 kB / 0.9586 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.5714, allocations: 190.1 kB / 0.9588 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.865e-05/0.5715, allocations: 66.84 kB / 0.9588 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.5717, allocations: 86.38 kB / 0.9589 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.5717, allocations: 6.875 kB / 0.9589 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.5719, allocations: 137.5 kB / 0.959 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.632e-05/0.5719, allocations: 55.12 kB / 0.9591 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.117e-05/0.572, allocations: 95.3 kB / 0.9592 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.5722, allocations: 219.9 kB / 0.9594 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.5722, allocations: 0 / 0.9594 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.5722, allocations: 0 / 0.9594 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.5722, allocations: 1.375 kB / 0.9594 GB, free: 4.492 MB / 0.7169 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.0003684/0.5726, allocations: 415.2 kB / 0.9598 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.899e-05/0.5726, allocations: 9.625 kB / 0.9598 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.736e-05/0.5727, allocations: 56.22 kB / 0.9598 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.573, allocations: 49.45 kB / 0.9599 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.5731, allocations: 211.3 kB / 0.9601 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.5732, allocations: 10.16 kB / 0.9601 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.5732, allocations: 12.62 kB / 0.9601 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.5734, allocations: 238.2 kB / 0.9603 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.5735, allocations: 7.938 kB / 0.9604 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.5735, allocations: 1.594 kB / 0.9604 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.5735, allocations: 16.16 kB / 0.9604 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.5737, allocations: 147 kB / 0.9605 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006909/0.5744, allocations: 1.127 MB / 0.9616 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.989e-05/0.5745, allocations: 37.05 kB / 0.9616 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.879e-05/0.5745, allocations: 23.84 kB / 0.9617 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.5745, allocations: 4.969 kB / 0.9617 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.244e-05/0.5745, allocations: 31.59 kB / 0.9617 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.693e-06/0.5746, allocations: 0 / 0.9617 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0001504/0.5747, allocations: 79.92 kB / 0.9618 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.838e-05/0.5747, allocations: 55.34 kB / 0.9618 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.5749, allocations: 175.2 kB / 0.962 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.965e-06/0.5749, allocations: 26.86 kB / 0.962 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.5749, allocations: 143.8 kB / 0.9622 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.085e-05/0.5749, allocations: 18.33 kB / 0.9622 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.575, allocations: 16.62 kB / 0.9622 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.018e-05/0.575, allocations: 322.6 kB / 0.9625 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.395e-05/0.575, allocations: 23.11 kB / 0.9625 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.293e-05/0.5751, allocations: 94.88 kB / 0.9626 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.692e-05/0.5752, allocations: 114.9 kB / 0.9627 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5752, allocations: 1.031 kB / 0.9627 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001659/0.5754, allocations: 138 kB / 0.9629 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.889e-05/0.5754, allocations: 170.2 kB / 0.963 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.5754, allocations: 3 kB / 0.963 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.5755, allocations: 3 kB / 0.963 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.347e-05/0.5756, allocations: 28.36 kB / 0.9631 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.5756, allocations: 3.094 kB / 0.9631 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.603e-05/0.5756, allocations: 17.09 kB / 0.9631 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.5757, allocations: 13.97 kB / 0.9631 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.989e-06/0.5757, allocations: 4.031 kB / 0.9631 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000122/0.5758, allocations: 96.61 kB / 0.9632 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-06/0.5758, allocations: 3.156 kB / 0.9632 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.5758, allocations: 3.75 kB / 0.9632 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.931e-05/0.5759, allocations: 23.34 kB / 0.9632 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.5759, allocations: 8.156 kB / 0.9632 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.134e-05/0.576, allocations: 12.02 kB / 0.9632 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.576, allocations: 14 kB / 0.9632 GB, free: 0.8516 MB / 0.7169 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.244e-05/0.576, allocations: 212.5 kB / 0.9634 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.5761, allocations: 9.188 kB / 0.9635 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.5761, allocations: 12.28 kB / 0.9635 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5761, allocations: 1.156 kB / 0.9635 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5761, allocations: 0 / 0.9635 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.5761, allocations: 7.875 kB / 0.9635 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.5764, allocations: 478.6 kB / 0.9639 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5764, allocations: 1.375 kB / 0.9639 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.121e-05/0.5765, allocations: 13.58 kB / 0.9639 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.5765, allocations: 1.094 kB / 0.9639 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-06/0.5765, allocations: 1.875 kB / 0.9639 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5765, allocations: 5.125 kB / 0.964 GB, free: 136 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5765, allocations: 1.031 kB / 0.964 GB, free: 136 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.273e-05/0.5766, allocations: 111.5 kB / 0.9641 GB, free: 20 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.221e-05/0.5767, allocations: 97.47 kB / 0.9642 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.5767, allocations: 1.875 kB / 0.9642 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.682e-05/0.5767, allocations: 5.594 kB / 0.9642 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.292e-05/0.5768, allocations: 1.469 kB / 0.9642 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.5768, allocations: 7.141 kB / 0.9642 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.76e-05/0.5769, allocations: 124.6 kB / 0.9643 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5769, allocations: 1.031 kB / 0.9643 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003278/0.5772, allocations: 51.5 kB / 0.9643 GB, free: 15.79 MB / 0.7325 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.0003338/0.5775, allocations: 0.6582 MB / 0.965 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001651/0.5777, allocations: 105.2 kB / 0.9651 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5777, allocations: 3.938 kB / 0.9651 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.242e-05/0.5777, allocations: 14.03 kB / 0.9651 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.578, allocations: 20.08 kB / 0.9651 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.5794, allocations: 1.782 MB / 0.9669 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.5797, allocations: 0.7292 MB / 0.9676 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.919e-05/0.5798, allocations: 31.83 kB / 0.9676 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.823e-05/0.5799, allocations: 33.14 kB / 0.9676 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.5799, allocations: 0 / 0.9676 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.261/1.841, allocations: 2.152 MB / 0.9697 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/1.841, allocations: 211 kB / 0.9699 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/3.622, allocations: 0 / 0.9699 GB, free: 11.43 MB / 0.7325 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