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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.008333/0.008333, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001776/0.001776, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.544/1.544, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.853/2.853, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 71.83 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3779, allocations: 159.9 MB / 1.226 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005101/0.3831, allocations: 2.512 MB / 1.228 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001812/0.3849, allocations: 0.779 MB / 1.229 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.3852, allocations: 7.938 kB / 1.229 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.3866, allocations: 0.5297 MB / 1.229 GB, free: 5.391 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003664/0.387, allocations: 103.5 kB / 1.229 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003582/0.3874, allocations: 115.7 kB / 1.23 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.3878, allocations: 195.4 kB / 1.23 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004837/0.3882, allocations: 166.1 kB / 1.23 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.3884, allocations: 83.69 kB / 1.23 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/0.3888, allocations: 87.72 kB / 1.23 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.3888, allocations: 12 kB / 1.23 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.3891, allocations: 111.8 kB / 1.23 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.3892, allocations: 63.75 kB / 1.23 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.3894, allocations: 67.67 kB / 1.23 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.3898, allocations: 219.2 kB / 1.23 GB, free: 4.184 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.3898, allocations: 3.984 kB / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3898, allocations: 0 / 1.23 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.3898, allocations: 4 kB / 1.23 GB, free: 4.176 MB / 0.9825 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.0007401/0.3906, allocations: 453 kB / 1.231 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.3906, allocations: 12.03 kB / 1.231 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004099/0.3911, allocations: 44.8 kB / 1.231 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.3913, allocations: 220.1 kB / 1.231 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.3914, allocations: 8.656 kB / 1.231 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/0.3914, allocations: 20.31 kB / 1.231 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003758/0.3918, allocations: 239.2 kB / 1.231 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3918, allocations: 0 / 1.231 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.3918, allocations: 8 kB / 1.231 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.217e-05/0.3919, allocations: 12.27 kB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002435/0.3921, allocations: 144.7 kB / 1.232 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.3933, allocations: 1.131 MB / 1.233 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.302e-05/0.3934, allocations: 46.5 kB / 1.233 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.661e-05/0.3935, allocations: 16.86 kB / 1.233 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.3935, allocations: 0 / 1.233 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.3935, allocations: 30.56 kB / 1.233 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.3935, allocations: 0 / 1.233 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002242/0.3937, allocations: 85.59 kB / 1.233 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.3938, allocations: 51.41 kB / 1.233 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.394, allocations: 173.6 kB / 1.233 GB, free: 1.23 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.394, allocations: 33.7 kB / 1.233 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.422e-05/0.3941, allocations: 143.7 kB / 1.233 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.3941, allocations: 15.83 kB / 1.233 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.3942, allocations: 33.67 kB / 1.233 GB, free: 0.9922 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3943, allocations: 318.8 kB / 1.234 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.946e-05/0.3943, allocations: 28.84 kB / 1.234 GB, free: 0.6406 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.767e-05/0.3944, allocations: 88.06 kB / 1.234 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.3946, allocations: 129.2 kB / 1.234 GB, free: 372 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3946, allocations: 0 / 1.234 GB, free: 372 kB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002035/0.3948, allocations: 133.4 kB / 1.234 GB, free: 232 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3948, allocations: 8 kB / 1.234 GB, free: 224 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3948, allocations: 4 kB / 1.234 GB, free: 220 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3949, allocations: 3.938 kB / 1.234 GB, free: 216 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.395, allocations: 27.92 kB / 1.234 GB, free: 188 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.395, allocations: 7.984 kB / 1.234 GB, free: 180 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.012e-05/0.3951, allocations: 16.2 kB / 1.234 GB, free: 164 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.3951, allocations: 12 kB / 1.234 GB, free: 152 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001054/0.3952, allocations: 124 kB / 1.234 GB, free: 24 kB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.238e-05/0.3953, allocations: 93.31 kB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001377/0.3955, allocations: 129.5 kB / 1.234 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.3955, allocations: 0 / 1.234 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000208/0.3957, allocations: 141.3 kB / 1.234 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3957, allocations: 8 kB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-06/0.3957, allocations: 320 / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.548e-06/0.3957, allocations: 8 kB / 1.235 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.002e-05/0.3958, allocations: 27.92 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.3958, allocations: 7.938 kB / 1.235 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.19e-05/0.3959, allocations: 8 kB / 1.235 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.3959, allocations: 4 kB / 1.235 GB, free: 15.53 MB / 0.9981 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.0001196/0.3961, allocations: 197 kB / 1.235 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.3961, allocations: 7.953 kB / 1.235 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.3961, allocations: 12.94 kB / 1.235 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3962, allocations: 7.938 kB / 1.235 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3962, allocations: 4 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3962, allocations: 0 / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004704/0.3967, allocations: 473.1 kB / 1.235 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3967, allocations: 0 / 1.235 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.784e-05/0.3967, allocations: 11.98 kB / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.3967, allocations: 4.125 kB / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.3967, allocations: 0 / 1.235 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.3967, allocations: 7.938 kB / 1.235 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3968, allocations: 0 / 1.235 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.3969, allocations: 111.5 kB / 1.235 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.397, allocations: 93.05 kB / 1.235 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.397, allocations: 4 kB / 1.235 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.661e-05/0.3971, allocations: 4 kB / 1.235 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.34e-05/0.3971, allocations: 3.938 kB / 1.235 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-06/0.3971, allocations: 4 kB / 1.235 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001237/0.3972, allocations: 128.2 kB / 1.236 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.794e-06/0.3972, allocations: 0 / 1.236 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003682/0.3976, allocations: 55.83 kB / 1.236 GB, free: 14.3 MB / 0.9981 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.0001083/0.3977, allocations: 107.2 kB / 1.236 GB, free: 14.18 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002316/0.398, allocations: 111.6 kB / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.398, allocations: 1.25 kB / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.836e-05/0.398, allocations: 12 kB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.3983, allocations: 28.23 kB / 1.236 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005404/0.3988, allocations: 270.8 kB / 1.236 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.3992, allocations: 0.7241 MB / 1.237 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.65e-05/0.3993, allocations: 28.56 kB / 1.237 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.3993, allocations: 15.44 kB / 1.237 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.3993, allocations: 0 / 1.237 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of Templates: time 0.003409/0.4027, allocations: 0.8858 MB / 1.238 GB, free: 12.06 MB / 0.9981 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/jenkins/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