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.0009428/0.0009428, allocations: 99.58 kB / 16.02 MB, free: 76 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.001924/0.001924, allocations: 182.3 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.76/2.76, allocations: 462.6 MB / 0.737 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.0003549, allocations: 7.625 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2992, allocations: 159.6 MB / 1.059 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003229/0.3025, allocations: 2.211 MB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.304, allocations: 0.7635 MB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.3041, allocations: 7.938 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.3043, allocations: 23.84 kB / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003866/0.3047, allocations: 103.6 kB / 1.062 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.3051, allocations: 99.81 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.3055, allocations: 295.2 kB / 1.063 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.3058, allocations: 191.2 kB / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3059, allocations: 59.77 kB / 1.063 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.3061, allocations: 91.66 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.109e-05/0.3062, allocations: 8 kB / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002997/0.3065, allocations: 135.7 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.94e-05/0.3066, allocations: 51.83 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.489e-05/0.3067, allocations: 89.38 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.3069, allocations: 175.8 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3069, allocations: 0 / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3069, allocations: 4 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.3069, allocations: 0 / 1.063 GB, free: 0.6875 MB / 0.8106 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.0006846/0.3076, allocations: 415.3 kB / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3077, allocations: 8.031 kB / 1.064 GB, free: 224 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003936/0.3081, allocations: 52.72 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002529/0.3083, allocations: 212.1 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.3084, allocations: 12.66 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.3084, allocations: 24.34 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003866/0.3088, allocations: 219.6 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3088, allocations: 192 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.3089, allocations: 7.938 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.959e-05/0.3089, allocations: 16.27 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.3092, allocations: 152.6 kB / 1.065 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.3103, allocations: 1.134 MB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.631e-05/0.3104, allocations: 34.56 kB / 1.066 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.711e-05/0.3105, allocations: 16.86 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.3105, allocations: 0 / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3105, allocations: 38.64 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.3105, allocations: 0 / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0001988/0.3107, allocations: 77.53 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.3108, allocations: 55.34 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.311, allocations: 179.7 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.311, allocations: 25.7 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.3111, allocations: 143.4 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.61e-05/0.3111, allocations: 19.75 kB / 1.066 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.3112, allocations: 13.72 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3113, allocations: 326.8 kB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.29e-05/0.3114, allocations: 27.98 kB / 1.067 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.526e-05/0.3114, allocations: 85.38 kB / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.3116, allocations: 129.2 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3116, allocations: 4 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002081/0.3118, allocations: 129.4 kB / 1.067 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.3119, allocations: 162.7 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3119, allocations: 8 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.312, allocations: 3.938 kB / 1.067 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.3121, allocations: 23.98 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.3121, allocations: 7.938 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.168e-05/0.3122, allocations: 19.84 kB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.3122, allocations: 4 kB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.3122, allocations: 4 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001482/0.3124, allocations: 100 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3124, allocations: 4 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.889e-06/0.3124, allocations: 4 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.77e-05/0.3125, allocations: 27.98 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.3125, allocations: 7.938 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.3126, allocations: 11.89 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.3126, allocations: 7.984 kB / 1.067 GB, free: 12.36 MB / 0.8262 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.0001421/0.3127, allocations: 217.3 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.3128, allocations: 11.91 kB / 1.068 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.342e-05/0.3128, allocations: 12.92 kB / 1.068 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3128, allocations: 4 kB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3128, allocations: 0 / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3128, allocations: 3.938 kB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.3133, allocations: 473.1 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3133, allocations: 0 / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-05/0.3133, allocations: 8 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.3134, allocations: 3.938 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.3134, allocations: 8 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.3134, allocations: 0 / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3134, allocations: 3.938 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.3135, allocations: 115.7 kB / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.3136, allocations: 88.95 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.3136, allocations: 11.98 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.435e-05/0.3137, allocations: 0 / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.721e-05/0.3137, allocations: 4 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-06/0.3137, allocations: 0 / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.756e-05/0.3138, allocations: 124 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.813e-06/0.3138, allocations: 4 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003581/0.3142, allocations: 63.62 kB / 1.068 GB, free: 11.11 MB / 0.8262 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.0001026/0.3143, allocations: 103.2 kB / 1.069 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.3145, allocations: 104.8 kB / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.3145, allocations: 4.062 kB / 1.069 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.79e-05/0.3145, allocations: 19.92 kB / 1.069 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.3148, allocations: 27.92 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005787/0.3154, allocations: 365.6 kB / 1.069 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3157, allocations: 0.7202 MB / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.404e-05/0.3158, allocations: 19.44 kB / 1.07 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of SimCode: time 6.92e-07/0.3158, allocations: 0 / 1.07 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of Templates: time 0.003249/0.319, allocations: 1.42 MB / 1.071 GB, free: 8.254 MB / 0.8262 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