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.001089/0.001089, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001128/0.001128, allocations: 195.7 kB / 16.25 MB, free: 6.633 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.403/1.403, allocations: 222.9 MB / 239.9 MB, free: 4.406 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.741/2.741, allocations: 437 MB / 0.71 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 63.89 kB / 0.8687 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7749/0.7763, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004224/0.7806, allocations: 2.573 MB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001385/0.782, allocations: 0.783 MB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.7821, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.7833, allocations: 0.5027 MB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.7836, allocations: 99.61 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.784, allocations: 105.1 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.7842, allocations: 195.3 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00041/0.7847, allocations: 190.1 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.541e-05/0.7848, allocations: 79.7 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.785, allocations: 95.7 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.785, allocations: 12 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.7852, allocations: 115.7 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.915e-05/0.7853, allocations: 55.88 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.229e-05/0.7854, allocations: 75.59 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.7857, allocations: 229.2 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.7857, allocations: 4 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7857, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.7857, allocations: 0 / 1.022 GB, free: 13.62 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.0006708/0.7864, allocations: 444.1 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.7865, allocations: 12.03 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003939/0.7869, allocations: 44.8 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.7871, allocations: 212.1 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.7871, allocations: 12.66 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.7872, allocations: 16.38 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.7875, allocations: 227.2 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.7876, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.7876, allocations: 7.984 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.87e-05/0.7876, allocations: 20.27 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.7879, allocations: 144.7 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.789, allocations: 1.131 MB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.009e-05/0.7891, allocations: 38.56 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.716e-05/0.7891, allocations: 16.86 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.7891, allocations: 4.031 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.7892, allocations: 38.48 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.7892, allocations: 0 / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0002074/0.7894, allocations: 85.62 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.7894, allocations: 51.41 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.7896, allocations: 172.9 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.7896, allocations: 25.7 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.7897, allocations: 139.4 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.7897, allocations: 15.81 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.7898, allocations: 37.61 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.7899, allocations: 318.8 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/0.7899, allocations: 24.86 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.914e-05/0.79, allocations: 97.31 kB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001374/0.7902, allocations: 129.3 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7902, allocations: 0 / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001995/0.7904, allocations: 137.3 kB / 1.025 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.7904, allocations: 8 kB / 1.025 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.7904, allocations: 0 / 1.025 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.7904, allocations: 8.25 kB / 1.025 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.7906, allocations: 31.92 kB / 1.025 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.7906, allocations: 4 kB / 1.025 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.071e-05/0.7907, allocations: 19.78 kB / 1.025 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.7907, allocations: 4 kB / 1.025 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001042/0.7908, allocations: 124.1 kB / 1.025 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.447e-05/0.7909, allocations: 88.58 kB / 1.025 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001287/0.791, allocations: 129.2 kB / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.253e-06/0.791, allocations: 0 / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001834/0.7912, allocations: 133.6 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.872e-06/0.7912, allocations: 4 kB / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.7912, allocations: 4 kB / 1.026 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.4e-06/0.7912, allocations: 7.938 kB / 1.026 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.09e-05/0.7913, allocations: 23.94 kB / 1.026 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.7913, allocations: 11.92 kB / 1.026 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.835e-05/0.7914, allocations: 7.906 kB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.7914, allocations: 8 kB / 1.026 GB, free: 9 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.0001022/0.7915, allocations: 188.3 kB / 1.026 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.7915, allocations: 7.906 kB / 1.026 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.425e-05/0.7916, allocations: 16.94 kB / 1.026 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.7916, allocations: 3.938 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.7916, allocations: 4 kB / 1.026 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.7916, allocations: 3.984 kB / 1.026 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.792, allocations: 480.9 kB / 1.026 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.792, allocations: 0 / 1.026 GB, free: 8.234 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.33e-05/0.7921, allocations: 4 kB / 1.026 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.7921, allocations: 4 kB / 1.026 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.7921, allocations: 0 / 1.026 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.7921, allocations: 4 kB / 1.026 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.7921, allocations: 0 / 1.026 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.7922, allocations: 127.6 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.108e-05/0.7923, allocations: 85.02 kB / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.7923, allocations: 0 / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.642e-05/0.7924, allocations: 4 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.61e-05/0.7924, allocations: 3.984 kB / 1.027 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.7924, allocations: 8 kB / 1.027 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001041/0.7925, allocations: 133.5 kB / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7925, allocations: 0 / 1.027 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003355/0.7929, allocations: 51.84 kB / 1.027 GB, free: 7.773 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.0001071/0.793, allocations: 95.25 kB / 1.027 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002072/0.7932, allocations: 120.9 kB / 1.027 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.7932, allocations: 4.125 kB / 1.027 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.84e-05/0.7932, allocations: 19.92 kB / 1.027 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.7935, allocations: 21.11 kB / 1.027 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005211/0.7941, allocations: 327.3 kB / 1.027 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.7944, allocations: 0.7241 MB / 1.028 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.076e-05/0.7945, allocations: 28.61 kB / 1.028 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.143e-05/0.7945, allocations: 19.38 kB / 1.028 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7945, allocations: 0 / 1.028 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of Templates: time 0.003308/0.7978, allocations: 0.8469 MB / 1.029 GB, free: 5.516 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