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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001556/0.001556, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002527/0.002527, allocations: 196.9 kB / 16.14 MB, free: 6.719 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.4/1.4, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.746/2.746, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 65.38 kB / 0.8984 GB, free: 37.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3708, allocations: 157.4 MB / 1.052 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004736/0.3755, allocations: 2.561 MB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.377, allocations: 0.7751 MB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3772, allocations: 4 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.3784, allocations: 0.5208 MB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002658/0.3787, allocations: 99.61 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.379, allocations: 95.81 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003083/0.3793, allocations: 299.3 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.3796, allocations: 118.1 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.552e-05/0.3797, allocations: 63.78 kB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.3799, allocations: 91.66 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.3799, allocations: 8 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002586/0.3802, allocations: 139.7 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.153e-05/0.3803, allocations: 59.8 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.473e-05/0.3804, allocations: 71.67 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.3807, allocations: 223.5 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3807, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3807, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.3807, allocations: 0 / 1.057 GB, free: 3.75 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.0007382/0.3815, allocations: 455.3 kB / 1.058 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.3815, allocations: 12.03 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003981/0.3819, allocations: 48.64 kB / 1.058 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.3822, allocations: 208.1 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.3822, allocations: 12.66 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.513e-05/0.3822, allocations: 12.38 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003789/0.3826, allocations: 235.2 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3826, allocations: 0 / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.3827, allocations: 0 / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.819e-05/0.3827, allocations: 20.27 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002475/0.383, allocations: 148.7 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.3842, allocations: 1.134 MB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.254e-05/0.3843, allocations: 38.56 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.054e-05/0.3843, allocations: 24.88 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.3843, allocations: 0 / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.3844, allocations: 30.56 kB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.3844, allocations: 4 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0002199/0.3846, allocations: 77.53 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.3847, allocations: 55.34 kB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.3848, allocations: 171.8 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.3849, allocations: 29.7 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.385, allocations: 143.3 kB / 1.06 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.385, allocations: 11.84 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.3851, allocations: 37.61 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3852, allocations: 322.8 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.255e-05/0.3853, allocations: 28.8 kB / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.3854, allocations: 89.42 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.3856, allocations: 121.3 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3856, allocations: 0 / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001934/0.3858, allocations: 133.3 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3858, allocations: 8.312 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3858, allocations: 8 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.3858, allocations: 7.938 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.3859, allocations: 27.92 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.386, allocations: 7.938 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.3861, allocations: 15.84 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.3861, allocations: 8 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.992e-05/0.3862, allocations: 121.6 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.999e-05/0.3863, allocations: 89.44 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001222/0.3864, allocations: 129.2 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.142e-06/0.3864, allocations: 0 / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001878/0.3866, allocations: 137.3 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.135e-06/0.3866, allocations: 8 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.3866, allocations: 0 / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.2e-06/0.3866, allocations: 4 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.268e-05/0.3867, allocations: 23.98 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.3867, allocations: 11.88 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.834e-05/0.3868, allocations: 11.91 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.3868, allocations: 4 kB / 1.061 GB, free: 15.12 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.0001133/0.3869, allocations: 192.5 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.387, allocations: 7.906 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.438e-05/0.387, allocations: 13.22 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.387, allocations: 7.922 kB / 1.061 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.387, allocations: 3.984 kB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.387, allocations: 4 kB / 1.061 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.3875, allocations: 477 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3875, allocations: 0 / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.362e-05/0.3875, allocations: 12 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3876, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.3876, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.3876, allocations: 7.938 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.3876, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.3877, allocations: 119.6 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.3878, allocations: 85.02 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.3878, allocations: 4 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.706e-05/0.3879, allocations: 4 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.3879, allocations: 3.984 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.3879, allocations: 7.938 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.143e-05/0.388, allocations: 124 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.388, allocations: 0 / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003456/0.3884, allocations: 55.75 kB / 1.062 GB, free: 13.89 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.0001221/0.3885, allocations: 99.19 kB / 1.062 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002099/0.3887, allocations: 116.7 kB / 1.062 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3887, allocations: 0 / 1.062 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.797e-05/0.3887, allocations: 19.92 kB / 1.062 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.3891, allocations: 21.53 kB / 1.062 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005709/0.3896, allocations: 319.6 kB / 1.063 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.39, allocations: 0.7241 MB / 1.063 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.827e-05/0.3901, allocations: 28.61 kB / 1.064 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.907e-05/0.3901, allocations: 15.44 kB / 1.064 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.3901, allocations: 0 / 1.064 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of Templates: time 0.003199/0.3933, allocations: 0.8214 MB / 1.064 GB, free: 11.68 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/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