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: 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.0009528/0.0009526, allocations: 92.31 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 182.7 kB / 16.92 MB, free: 6.652 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.392/1.392, allocations: 223.3 MB / 241 MB, free: 5.238 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.469/2.469, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 12 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7086/0.709, allocations: 142.4 MB / 0.9557 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002687/0.7117, allocations: 2.195 MB / 0.9579 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.7129, allocations: 0.7688 MB / 0.9586 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.713, allocations: 2.688 kB / 0.9586 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.7132, allocations: 27.75 kB / 0.9586 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.7135, allocations: 92.17 kB / 0.9587 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.7138, allocations: 110.3 kB / 0.9588 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.7142, allocations: 300.8 kB / 0.9591 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.7145, allocations: 182.4 kB / 0.9593 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.7146, allocations: 61.36 kB / 0.9593 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.7148, allocations: 94.84 kB / 0.9594 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.7149, allocations: 6.875 kB / 0.9594 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002532/0.7151, allocations: 142 kB / 0.9596 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.277e-05/0.7152, allocations: 47.55 kB / 0.9596 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.243e-05/0.7153, allocations: 88.19 kB / 0.9597 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002195/0.7155, allocations: 176.6 kB / 0.9599 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.7155, allocations: 5.312 kB / 0.9599 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.933e-06/0.7155, allocations: 0 / 0.9599 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.7155, allocations: 0 / 0.9599 GB, free: 4.52 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.0005607/0.7161, allocations: 416 kB / 0.9603 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.7162, allocations: 9.625 kB / 0.9603 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004103/0.7166, allocations: 49.47 kB / 0.9603 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.7168, allocations: 215.3 kB / 0.9605 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.7168, allocations: 14.14 kB / 0.9606 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.7169, allocations: 12.62 kB / 0.9606 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004405/0.7173, allocations: 226 kB / 0.9608 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.7173, allocations: 5.562 kB / 0.9608 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.7174, allocations: 9.312 kB / 0.9608 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.497e-05/0.7174, allocations: 23.2 kB / 0.9608 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.7177, allocations: 143 kB / 0.961 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.7189, allocations: 1.127 MB / 0.9621 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.093e-05/0.719, allocations: 41.09 kB / 0.9621 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.832e-05/0.719, allocations: 15.36 kB / 0.9621 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.719, allocations: 5.125 kB / 0.9621 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.7191, allocations: 39.67 kB / 0.9622 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 2.695e-06/0.7191, allocations: 3.984 kB / 0.9622 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0002767/0.7194, allocations: 70.94 kB / 0.9622 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.7194, allocations: 56.62 kB / 0.9623 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.7196, allocations: 174.2 kB / 0.9624 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.7196, allocations: 25.7 kB / 0.9625 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.762e-05/0.7197, allocations: 152.2 kB / 0.9626 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.7197, allocations: 14.53 kB / 0.9626 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.7198, allocations: 17.09 kB / 0.9626 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.355e-05/0.7199, allocations: 321.7 kB / 0.9629 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/0.7199, allocations: 18.92 kB / 0.963 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.158e-05/0.72, allocations: 97.91 kB / 0.9631 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.7202, allocations: 120.6 kB / 0.9632 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.7202, allocations: 0 / 0.9632 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002397/0.7204, allocations: 142.2 kB / 0.9633 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.97e-05/0.7205, allocations: 162.1 kB / 0.9635 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.7205, allocations: 3 kB / 0.9635 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.7206, allocations: 3.406 kB / 0.9635 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.7207, allocations: 28.14 kB / 0.9635 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.7207, allocations: 2.875 kB / 0.9635 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.646e-05/0.7208, allocations: 17.5 kB / 0.9635 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.7208, allocations: 9.844 kB / 0.9635 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.7209, allocations: 4.469 kB / 0.9635 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001837/0.721, allocations: 100.7 kB / 0.9636 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.7211, allocations: 1.969 kB / 0.9636 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.7211, allocations: 3.406 kB / 0.9636 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.412e-05/0.7212, allocations: 32.64 kB / 0.9637 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.7212, allocations: 2.75 kB / 0.9637 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.971e-05/0.7213, allocations: 13.03 kB / 0.9637 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.7213, allocations: 9.594 kB / 0.9637 GB, free: 0.9375 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.0001259/0.7214, allocations: 217.3 kB / 0.9639 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.157e-05/0.7215, allocations: 8.75 kB / 0.9639 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.774e-05/0.7215, allocations: 16.11 kB / 0.9639 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.7215, allocations: 1.219 kB / 0.9639 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.7215, allocations: 4 kB / 0.9639 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.7215, allocations: 3.938 kB / 0.9639 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.7219, allocations: 470.7 kB / 0.9644 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.7219, allocations: 1 kB / 0.9644 GB, free: 236 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.722, allocations: 9.938 kB / 0.9644 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.722, allocations: 4.906 kB / 0.9644 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.722, allocations: 2.031 kB / 0.9644 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.722, allocations: 1.469 kB / 0.9644 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.722, allocations: 5.219 kB / 0.9644 GB, free: 224 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.7221, allocations: 107.2 kB / 0.9645 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.7222, allocations: 93.55 kB / 0.9646 GB, free: 4 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.4e-05/0.7222, allocations: 10.02 kB / 0.9646 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.614e-05/0.7223, allocations: 4.969 kB / 0.9646 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.542e-05/0.7223, allocations: 2.359 kB / 0.9646 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.7223, allocations: 2 kB / 0.9646 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001082/0.7224, allocations: 130.5 kB / 0.9647 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.71e-07/0.7224, allocations: 0 / 0.9647 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003882/0.7228, allocations: 52.16 kB / 0.9648 GB, free: 15.88 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.0001081/0.723, allocations: 95.44 kB / 0.9649 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002474/0.7232, allocations: 116.2 kB / 0.965 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7232, allocations: 1.25 kB / 0.965 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.253e-05/0.7233, allocations: 18.89 kB / 0.965 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.7236, allocations: 30.05 kB / 0.965 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006249/0.7242, allocations: 370.9 kB / 0.9654 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.7245, allocations: 0.7247 MB / 0.9661 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.7246, allocations: 14.69 kB / 0.9661 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.7246, allocations: 0 / 0.9661 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of Templates: time 0.003596/0.7282, allocations: 1.422 MB / 0.9675 GB, free: 13.95 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/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