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.001176/0.001176, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001475/0.001475, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.366/1.366, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.633/2.633, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.91 kB / 0.8685 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6971/0.6984, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004438/0.7029, allocations: 2.559 MB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001412/0.7043, allocations: 0.7868 MB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.7044, allocations: 4 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.7056, allocations: 0.5104 MB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.7059, allocations: 99.59 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.7062, allocations: 95.83 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.7065, allocations: 291.3 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.7068, allocations: 114.1 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.957e-05/0.7069, allocations: 71.7 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.7071, allocations: 91.7 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.209e-05/0.7071, allocations: 12 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.7074, allocations: 143.7 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.481e-05/0.7075, allocations: 47.89 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.308e-05/0.7075, allocations: 79.53 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.7079, allocations: 225.3 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.7079, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.252e-06/0.7079, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.7079, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 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.0006673/0.7086, allocations: 447.3 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.7086, allocations: 8.031 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003931/0.709, allocations: 44.7 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.7093, allocations: 224 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.7093, allocations: 8.656 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.7093, allocations: 20.38 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.7097, allocations: 227.3 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.7097, allocations: 3.938 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.7097, allocations: 8 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.498e-05/0.7098, allocations: 12.28 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.71, allocations: 144.7 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.7112, allocations: 1.131 MB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.038e-05/0.7113, allocations: 42.56 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.332e-05/0.7113, allocations: 12.86 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.7114, allocations: 4 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.7114, allocations: 34.5 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 2.846e-06/0.7114, allocations: 3.984 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002164/0.7116, allocations: 85.55 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.7117, allocations: 55.41 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.7119, allocations: 173.4 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.7119, allocations: 25.7 kB / 1.024 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.712, allocations: 143.3 kB / 1.024 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.712, allocations: 11.89 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.904e-05/0.7121, allocations: 29.62 kB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.7122, allocations: 322.8 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.01e-05/0.7123, allocations: 32.84 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.243e-05/0.7123, allocations: 85.38 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.7125, allocations: 133.3 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.7125, allocations: 0 / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002007/0.7127, allocations: 133.3 kB / 1.025 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.7127, allocations: 4 kB / 1.025 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.7127, allocations: 8.312 kB / 1.025 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.7128, allocations: 11.94 kB / 1.025 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.7129, allocations: 23.98 kB / 1.025 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.7129, allocations: 7.938 kB / 1.025 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.431e-05/0.713, allocations: 19.78 kB / 1.025 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.713, allocations: 8 kB / 1.025 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001112/0.7131, allocations: 120.1 kB / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.928e-05/0.7132, allocations: 89.44 kB / 1.025 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001283/0.7133, allocations: 113.3 kB / 1.025 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.12e-06/0.7134, allocations: 4 kB / 1.025 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001889/0.7136, allocations: 137.3 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.7136, allocations: 10.34 kB / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.7136, allocations: 4 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.151e-06/0.7136, allocations: 4 kB / 1.026 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.462e-05/0.7137, allocations: 27.86 kB / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.7137, allocations: 7.938 kB / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.891e-05/0.7137, allocations: 11.91 kB / 1.026 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.7138, allocations: 8 kB / 1.026 GB, free: 9.02 MB / 0.7794 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.0001119/0.7139, allocations: 192.4 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.7139, allocations: 7.906 kB / 1.026 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.714, allocations: 16.92 kB / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.714, allocations: 3.938 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.714, allocations: 0 / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.714, allocations: 0 / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000447/0.7144, allocations: 480.9 kB / 1.026 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.7144, allocations: 4 kB / 1.026 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.281e-05/0.7145, allocations: 4 kB / 1.026 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.7145, allocations: 0 / 1.026 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.7145, allocations: 7.984 kB / 1.026 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.7145, allocations: 0 / 1.026 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.7145, allocations: 0 / 1.026 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.7147, allocations: 115.9 kB / 1.026 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.315e-05/0.7147, allocations: 97.03 kB / 1.027 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.7148, allocations: 4 kB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.428e-05/0.7148, allocations: 0 / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.805e-05/0.7148, allocations: 4 kB / 1.027 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-06/0.7148, allocations: 0 / 1.027 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001086/0.7149, allocations: 137.6 kB / 1.027 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7149, allocations: 0 / 1.027 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003534/0.7153, allocations: 55.75 kB / 1.027 GB, free: 7.793 MB / 0.7794 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.0001129/0.7154, allocations: 99.25 kB / 1.027 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002045/0.7156, allocations: 108.8 kB / 1.027 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.7156, allocations: 4.062 kB / 1.027 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.697e-05/0.7157, allocations: 19.94 kB / 1.027 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.716, allocations: 19.98 kB / 1.027 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005417/0.7165, allocations: 323.4 kB / 1.027 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.7168, allocations: 0.7241 MB / 1.028 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.294e-05/0.7169, allocations: 32.61 kB / 1.028 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.717, allocations: 11.44 kB / 1.028 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of SimCode: time 4.61e-07/0.717, allocations: 0 / 1.028 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of Templates: time 0.00335/0.7203, allocations: 0.8262 MB / 1.029 GB, free: 5.57 MB / 0.7794 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/jenkins/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