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: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 109.3 kB / 16.41 MB, free: 6.445 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.00115/0.00115, allocations: 183 kB / 17.34 MB, free: 5.742 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.399/2.399, allocations: 437 MB / 0.7112 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 64.11 kB / 1.019 GB, free: 9.477 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8663/0.8678, allocations: 151.6 MB / 1.167 GB, free: 3.922 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00436/0.8722, allocations: 2.507 MB / 1.17 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001531/0.8738, allocations: 0.779 MB / 1.17 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.8739, allocations: 4 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.8753, allocations: 0.5335 MB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0003466/0.8756, allocations: 107.5 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004138/0.876, allocations: 108.8 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.8764, allocations: 199.4 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000385/0.8768, allocations: 162.1 kB / 1.172 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.8769, allocations: 83.69 kB / 1.172 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002317/0.8771, allocations: 91.66 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.8771, allocations: 12 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002003/0.8774, allocations: 111.8 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.8774, allocations: 51.89 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 7.492e-05/0.8775, allocations: 75.61 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002943/0.8778, allocations: 229 kB / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8778, allocations: 3.938 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.883e-06/0.8778, allocations: 0 / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.8779, allocations: 0 / 1.172 GB, free: 14.86 MB / 0.9044 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.0007052/0.8786, allocations: 443.3 kB / 1.173 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.8786, allocations: 8.922 kB / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003971/0.879, allocations: 48.7 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.8793, allocations: 216.1 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.8793, allocations: 12.66 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.8793, allocations: 16.36 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.8797, allocations: 236.8 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.8797, allocations: 0 / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.8797, allocations: 8 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.268e-05/0.8798, allocations: 16.28 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.88, allocations: 148.7 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.8812, allocations: 1.123 MB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 7.947e-05/0.8813, allocations: 38.58 kB / 1.174 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.428e-05/0.8813, allocations: 20.94 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.8813, allocations: 0 / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.8814, allocations: 38.44 kB / 1.174 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.8814, allocations: 0 / 1.174 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4): time 0.0002043/0.8816, allocations: 89.5 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.8816, allocations: 51.41 kB / 1.175 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.8818, allocations: 170.9 kB / 1.175 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.8818, allocations: 25.7 kB / 1.175 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.737e-05/0.8819, allocations: 143.4 kB / 1.175 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.8819, allocations: 19.8 kB / 1.175 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.882, allocations: 25.72 kB / 1.175 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.8821, allocations: 322.8 kB / 1.175 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.442e-05/0.8822, allocations: 36.84 kB / 1.175 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.8823, allocations: 87 kB / 1.175 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.8825, allocations: 133.3 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.8826, allocations: 0 / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000251/0.8828, allocations: 133.3 kB / 1.176 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.8828, allocations: 8 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.8829, allocations: 0 / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.8829, allocations: 12.25 kB / 1.176 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.883, allocations: 23.94 kB / 1.176 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.883, allocations: 7.984 kB / 1.176 GB, free: 10.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.435e-05/0.8831, allocations: 23.62 kB / 1.176 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.8831, allocations: 12 kB / 1.176 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001022/0.8832, allocations: 120.1 kB / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.514e-05/0.8833, allocations: 85.44 kB / 1.176 GB, free: 10.59 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001281/0.8834, allocations: 125.2 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.8835, allocations: 0 / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001932/0.8837, allocations: 133.6 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.653e-06/0.8837, allocations: 4 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.8837, allocations: 4 kB / 1.176 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.442e-06/0.8837, allocations: 4 kB / 1.176 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.664e-05/0.8838, allocations: 31.86 kB / 1.176 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.8838, allocations: 3.938 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.781e-05/0.8838, allocations: 8 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.8839, allocations: 8 kB / 1.176 GB, free: 10.24 MB / 0.9044 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 0.0001075/0.884, allocations: 192.3 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.884, allocations: 11.81 kB / 1.176 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.987e-05/0.8841, allocations: 16.92 kB / 1.176 GB, free: 10.01 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.8841, allocations: 3.938 kB / 1.176 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8841, allocations: 0 / 1.176 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.8841, allocations: 0 / 1.176 GB, free: 10 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/0.8845, allocations: 473 kB / 1.177 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.8845, allocations: 4 kB / 1.177 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.376e-05/0.8846, allocations: 8 kB / 1.177 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.8846, allocations: 4 kB / 1.177 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.8846, allocations: 4 kB / 1.177 GB, free: 9.453 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.8846, allocations: 3.984 kB / 1.177 GB, free: 9.449 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8846, allocations: 4 kB / 1.177 GB, free: 9.445 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.8848, allocations: 115.6 kB / 1.177 GB, free: 9.305 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.268e-05/0.8848, allocations: 93.23 kB / 1.177 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.8849, allocations: 0 / 1.177 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.44e-05/0.8849, allocations: 0 / 1.177 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.984e-05/0.8849, allocations: 11.98 kB / 1.177 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.8849, allocations: 0 / 1.177 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.94e-05/0.885, allocations: 132.9 kB / 1.177 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.885, allocations: 0 / 1.177 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003461/0.8854, allocations: 51.84 kB / 1.177 GB, free: 9.004 MB / 0.9044 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.0001092/0.8855, allocations: 102 kB / 1.177 GB, free: 8.895 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002045/0.8857, allocations: 112.8 kB / 1.178 GB, free: 8.785 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8857, allocations: 8.125 kB / 1.178 GB, free: 8.777 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.454e-05/0.8858, allocations: 15.94 kB / 1.178 GB, free: 8.762 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.886, allocations: 26.72 kB / 1.178 GB, free: 8.738 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005497/0.8866, allocations: 308.8 kB / 1.178 GB, free: 8.395 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.8869, allocations: 0.7244 MB / 1.179 GB, free: 7.645 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.887, allocations: 15.44 kB / 1.179 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of SimCode: time 1.663e-06/0.887, allocations: 0 / 1.179 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of Templates: time 0.003025/0.89, allocations: 1.454 MB / 1.18 GB, free: 6.18 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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