Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0008635/0.0008635, allocations: 98.72 kB / 16.02 MB, free: 72 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.001006/0.001006, allocations: 183 kB / 16.92 MB, free: 6.918 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.394/1.394, allocations: 223.3 MB / 241 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.622/2.622, allocations: 443.2 MB / 0.7181 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003329, allocations: 12.41 kB / 0.8801 GB, free: 42.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2681, allocations: 155.2 MB / 1.032 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002946/0.2711, allocations: 2.196 MB / 1.034 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001326/0.2725, allocations: 0.7752 MB / 1.035 GB, free: 1.762 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.549e-05/0.2726, allocations: 7.938 kB / 1.035 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.2727, allocations: 15.86 kB / 1.035 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002957/0.273, allocations: 107.6 kB / 1.035 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.2733, allocations: 99.83 kB / 1.035 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.2737, allocations: 303.2 kB / 1.035 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003285/0.274, allocations: 183.2 kB / 1.035 GB, free: 1.031 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.692e-05/0.2741, allocations: 63.77 kB / 1.035 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002354/0.2744, allocations: 91.66 kB / 1.035 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2744, allocations: 4 kB / 1.035 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002302/0.2746, allocations: 139.7 kB / 1.035 GB, free: 0.7383 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.2747, allocations: 47.83 kB / 1.036 GB, free: 0.6914 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.169e-05/0.2748, allocations: 85.38 kB / 1.036 GB, free: 0.6016 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.275, allocations: 171.8 kB / 1.036 GB, free: 444 kB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.275, allocations: 4 kB / 1.036 GB, free: 440 kB / 0.7794 GB Notification: Performance of FrontEnd: time 2.003e-06/0.275, allocations: 0 / 1.036 GB, free: 440 kB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.275, allocations: 4 kB / 1.036 GB, free: 436 kB / 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.0006257/0.2757, allocations: 423.3 kB / 1.036 GB, free: 15.96 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2757, allocations: 8.031 kB / 1.036 GB, free: 15.95 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003684/0.2761, allocations: 48.66 kB / 1.036 GB, free: 15.9 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.2763, allocations: 216.1 kB / 1.036 GB, free: 15.65 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.2764, allocations: 8.656 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.2764, allocations: 16.38 kB / 1.036 GB, free: 15.63 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.2768, allocations: 223.5 kB / 1.037 GB, free: 15.39 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2768, allocations: 192 / 1.037 GB, free: 15.39 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.2768, allocations: 15.88 kB / 1.037 GB, free: 15.38 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.622e-05/0.2769, allocations: 24.2 kB / 1.037 GB, free: 15.35 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.2771, allocations: 140.7 kB / 1.037 GB, free: 15.21 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.2782, allocations: 1.138 MB / 1.038 GB, free: 13.94 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 7.911e-05/0.2783, allocations: 42.56 kB / 1.038 GB, free: 13.89 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.647e-05/0.2783, allocations: 16.86 kB / 1.038 GB, free: 13.87 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.2783, allocations: 0 / 1.038 GB, free: 13.87 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.2784, allocations: 30.56 kB / 1.038 GB, free: 13.83 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.2784, allocations: 0 / 1.038 GB, free: 13.83 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0002064/0.2786, allocations: 85.59 kB / 1.038 GB, free: 13.74 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.2786, allocations: 59.34 kB / 1.038 GB, free: 13.67 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.2788, allocations: 175 kB / 1.038 GB, free: 13.49 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.2788, allocations: 29.64 kB / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.701e-05/0.2789, allocations: 135.4 kB / 1.039 GB, free: 13.32 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.2789, allocations: 23.73 kB / 1.039 GB, free: 13.3 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.279, allocations: 17.72 kB / 1.039 GB, free: 13.27 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.2791, allocations: 318.8 kB / 1.039 GB, free: 12.95 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.778e-05/0.2791, allocations: 19.98 kB / 1.039 GB, free: 12.93 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.233e-05/0.2792, allocations: 89.44 kB / 1.039 GB, free: 12.81 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.2794, allocations: 125.2 kB / 1.039 GB, free: 12.66 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2794, allocations: 0 / 1.039 GB, free: 12.66 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000194/0.2796, allocations: 137.3 kB / 1.039 GB, free: 12.52 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.517e-05/0.2797, allocations: 165.8 kB / 1.039 GB, free: 12.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2797, allocations: 0 / 1.039 GB, free: 12.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2797, allocations: 8 kB / 1.039 GB, free: 12.31 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.2798, allocations: 23.98 kB / 1.039 GB, free: 12.29 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2798, allocations: 7.938 kB / 1.039 GB, free: 12.28 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.944e-05/0.2799, allocations: 11.84 kB / 1.039 GB, free: 12.27 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.2799, allocations: 8 kB / 1.039 GB, free: 12.26 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.2799, allocations: 5.406 kB / 1.039 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001464/0.2801, allocations: 104 kB / 1.04 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2801, allocations: 4 kB / 1.04 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.108e-06/0.2801, allocations: 7.938 kB / 1.04 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.312e-05/0.2802, allocations: 19.98 kB / 1.04 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.2802, allocations: 7.938 kB / 1.04 GB, free: 12.11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.744e-05/0.2803, allocations: 15.84 kB / 1.04 GB, free: 12.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.2803, allocations: 12 kB / 1.04 GB, free: 12.09 MB / 0.795 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.000123/0.2804, allocations: 210.6 kB / 1.04 GB, free: 11.87 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.2804, allocations: 7.906 kB / 1.04 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.189e-05/0.2805, allocations: 17 kB / 1.04 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.2805, allocations: 0 / 1.04 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2805, allocations: 3.984 kB / 1.04 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2805, allocations: 7.875 kB / 1.04 GB, free: 11.83 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004146/0.2809, allocations: 469.1 kB / 1.04 GB, free: 11.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2809, allocations: 4.125 kB / 1.04 GB, free: 11.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-05/0.281, allocations: 4 kB / 1.04 GB, free: 11.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.281, allocations: 7.938 kB / 1.04 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.281, allocations: 0 / 1.04 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.281, allocations: 4 kB / 1.04 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.281, allocations: 3.938 kB / 1.04 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.2811, allocations: 111.6 kB / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.2812, allocations: 92.95 kB / 1.041 GB, free: 11.04 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.2812, allocations: 0 / 1.041 GB, free: 11.04 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.61e-05/0.2813, allocations: 4 kB / 1.041 GB, free: 11.03 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.2813, allocations: 7.922 kB / 1.041 GB, free: 11.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.2813, allocations: 4.328 kB / 1.041 GB, free: 11.02 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.239e-05/0.2814, allocations: 127.9 kB / 1.041 GB, free: 10.89 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2814, allocations: 0 / 1.041 GB, free: 10.89 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00036/0.2818, allocations: 63.69 kB / 1.041 GB, free: 10.83 MB / 0.795 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.0001/0.2819, allocations: 95.25 kB / 1.041 GB, free: 10.73 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001967/0.2821, allocations: 108.8 kB / 1.041 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.2821, allocations: 0 / 1.041 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.69e-05/0.2821, allocations: 28.17 kB / 1.041 GB, free: 10.6 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.2824, allocations: 23.92 kB / 1.041 GB, free: 10.57 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005483/0.283, allocations: 366.7 kB / 1.041 GB, free: 10.18 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.2833, allocations: 0.7202 MB / 1.042 GB, free: 9.43 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.123e-05/0.2833, allocations: 11.44 kB / 1.042 GB, free: 9.418 MB / 0.795 GB Notification: Performance of SimCode: time 3.2e-07/0.2833, allocations: 4 kB / 1.042 GB, free: 9.414 MB / 0.795 GB Notification: Performance of Templates: time 0.002949/0.2863, allocations: 1.421 MB / 1.043 GB, free: 7.996 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches