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: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_9_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_9_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.001067/0.001067, allocations: 88.41 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.009815/0.009815, allocations: 171.3 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.512/1.512, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.531/2.531, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003745, allocations: 8 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8308/0.8312, allocations: 142.4 MB / 0.955 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002703/0.834, allocations: 2.199 MB / 0.9572 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.8353, allocations: 0.7616 MB / 0.9579 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.8354, allocations: 3.562 kB / 0.9579 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.8356, allocations: 31.38 kB / 0.958 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.8359, allocations: 95.52 kB / 0.9581 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.8363, allocations: 111 kB / 0.9582 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.8366, allocations: 291.6 kB / 0.9584 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.8369, allocations: 198.2 kB / 0.9586 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.7e-05/0.837, allocations: 70.3 kB / 0.9587 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.8372, allocations: 86.22 kB / 0.9588 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.8373, allocations: 7.219 kB / 0.9588 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.8376, allocations: 142.3 kB / 0.9589 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.537e-05/0.8376, allocations: 43.14 kB / 0.959 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.8378, allocations: 91.75 kB / 0.959 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.8381, allocations: 222.5 kB / 0.9593 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.8381, allocations: 5.375 kB / 0.9593 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.565e-06/0.8381, allocations: 0 / 0.9593 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.8381, allocations: 0 / 0.9593 GB, free: 4.5 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.0006655/0.8388, allocations: 423.2 kB / 0.9597 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.8388, allocations: 9.625 kB / 0.9597 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003924/0.8392, allocations: 46.83 kB / 0.9597 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.8395, allocations: 210 kB / 0.9599 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.8395, allocations: 10.16 kB / 0.9599 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.8395, allocations: 16.62 kB / 0.9599 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.8399, allocations: 230 kB / 0.9602 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.8399, allocations: 1.562 kB / 0.9602 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.84, allocations: 9.312 kB / 0.9602 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.826e-05/0.84, allocations: 15.27 kB / 0.9602 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.8403, allocations: 143 kB / 0.9603 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.8413, allocations: 1.131 MB / 0.9614 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.826e-05/0.8414, allocations: 41.62 kB / 0.9615 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.151e-05/0.8415, allocations: 23.36 kB / 0.9615 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.8415, allocations: 1.094 kB / 0.9615 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.8415, allocations: 39.28 kB / 0.9615 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.8415, allocations: 0 / 0.9615 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002573/0.8418, allocations: 76.09 kB / 0.9616 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.8418, allocations: 55.34 kB / 0.9617 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.842, allocations: 173.8 kB / 0.9618 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.842, allocations: 30.45 kB / 0.9619 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.045e-05/0.8421, allocations: 140.1 kB / 0.962 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.8421, allocations: 14.81 kB / 0.962 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.8422, allocations: 20.7 kB / 0.962 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.551e-05/0.8423, allocations: 318.1 kB / 0.9623 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.041e-05/0.8423, allocations: 22.64 kB / 0.9623 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-05/0.8424, allocations: 94.36 kB / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.8425, allocations: 120.6 kB / 0.9625 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.8425, allocations: 4.969 kB / 0.9626 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001974/0.8427, allocations: 133.5 kB / 0.9627 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.146e-05/0.8428, allocations: 167.5 kB / 0.9628 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.8428, allocations: 3.531 kB / 0.9628 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.8429, allocations: 3.062 kB / 0.9628 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.843, allocations: 27.58 kB / 0.9629 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.843, allocations: 3.125 kB / 0.9629 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.205e-05/0.8431, allocations: 17.84 kB / 0.9629 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.8431, allocations: 14.11 kB / 0.9629 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/0.8431, allocations: 3.562 kB / 0.9629 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000135/0.8432, allocations: 97.56 kB / 0.963 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.8433, allocations: 2.75 kB / 0.963 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/0.8433, allocations: 2.719 kB / 0.963 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.506e-05/0.8433, allocations: 27.42 kB / 0.963 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.8434, allocations: 3.469 kB / 0.963 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.555e-05/0.8434, allocations: 12.31 kB / 0.963 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.8434, allocations: 6.812 kB / 0.9631 GB, free: 0.9297 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 0.0001024/0.8435, allocations: 220.6 kB / 0.9633 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.8436, allocations: 9.344 kB / 0.9633 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.361e-05/0.8436, allocations: 16.27 kB / 0.9633 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8436, allocations: 3.938 kB / 0.9633 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.8436, allocations: 1.125 kB / 0.9633 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.8436, allocations: 3.938 kB / 0.9633 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003519/0.844, allocations: 473.8 kB / 0.9638 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.844, allocations: 5 kB / 0.9638 GB, free: 216 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.032e-05/0.844, allocations: 10.09 kB / 0.9638 GB, free: 212 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.8441, allocations: 5.469 kB / 0.9638 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.8441, allocations: 2.031 kB / 0.9638 GB, free: 208 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.8441, allocations: 4.953 kB / 0.9638 GB, free: 204 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8441, allocations: 1.031 kB / 0.9638 GB, free: 204 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.8442, allocations: 115.8 kB / 0.9639 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.881e-05/0.8443, allocations: 94.41 kB / 0.964 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.8443, allocations: 1.188 kB / 0.964 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.395e-05/0.8444, allocations: 0.9844 kB / 0.964 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.8444, allocations: 6.359 kB / 0.964 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.8444, allocations: 6.094 kB / 0.964 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001195/0.8445, allocations: 130.8 kB / 0.9641 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8445, allocations: 0 / 0.9641 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003567/0.8449, allocations: 55.8 kB / 0.9642 GB, free: 15.85 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.0001308/0.845, allocations: 95.66 kB / 0.9643 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002309/0.8453, allocations: 109.8 kB / 0.9644 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.8453, allocations: 4 kB / 0.9644 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.844e-05/0.8453, allocations: 22.12 kB / 0.9644 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.8456, allocations: 21.8 kB / 0.9644 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000633/0.8463, allocations: 334.9 kB / 0.9647 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.8466, allocations: 0.7258 MB / 0.9654 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.762e-05/0.8467, allocations: 26.92 kB / 0.9655 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.373e-05/0.8468, allocations: 12.47 kB / 0.9655 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.8468, allocations: 1.5 kB / 0.9655 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of Templates: time 0.003382/0.8502, allocations: 0.8081 MB / 0.9663 GB, free: 14.27 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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