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.001471/0.001471, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.001746/0.001746, allocations: 189.5 kB / 17.34 MB, free: 5.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.511/1.511, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.68/2.68, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 68.11 kB / 1.055 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8004/0.8018, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00452/0.8064, allocations: 2.5 MB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001528/0.8079, allocations: 0.7829 MB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.8081, allocations: 0 / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.8096, allocations: 0.5258 MB / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003422/0.8099, allocations: 115.5 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.8103, allocations: 115.7 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003184/0.8106, allocations: 187.4 kB / 1.213 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.811, allocations: 170.1 kB / 1.213 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.8112, allocations: 79.69 kB / 1.213 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002552/0.8114, allocations: 95.66 kB / 1.213 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.8115, allocations: 12 kB / 1.213 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002327/0.8117, allocations: 111.8 kB / 1.213 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.804e-05/0.8118, allocations: 51.89 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.798e-05/0.8119, allocations: 75.61 kB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003652/0.8123, allocations: 221 kB / 1.213 GB, free: 8.586 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.371e-06/0.8123, allocations: 4 kB / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.195e-06/0.8123, allocations: 4 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.8123, allocations: 0 / 1.213 GB, free: 8.578 MB / 0.9356 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.0007789/0.8131, allocations: 447.3 kB / 1.214 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.8132, allocations: 8.031 kB / 1.214 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004277/0.8136, allocations: 48.7 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.8139, allocations: 220.1 kB / 1.214 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.8139, allocations: 12.66 kB / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.8139, allocations: 16.36 kB / 1.214 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.8143, allocations: 231.2 kB / 1.214 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.8143, allocations: 0 / 1.214 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.8144, allocations: 7.984 kB / 1.214 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-05/0.8144, allocations: 12.28 kB / 1.214 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.8147, allocations: 152.7 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.8158, allocations: 1.115 MB / 1.215 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.687e-05/0.8159, allocations: 46.56 kB / 1.216 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.779e-05/0.816, allocations: 20.94 kB / 1.216 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.816, allocations: 0 / 1.216 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.816, allocations: 34.5 kB / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.816, allocations: 3.938 kB / 1.216 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0002078/0.8162, allocations: 81.52 kB / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.8163, allocations: 51.41 kB / 1.216 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.8165, allocations: 179.6 kB / 1.216 GB, free: 5.637 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.8165, allocations: 25.7 kB / 1.216 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.972e-05/0.8166, allocations: 143.4 kB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.8166, allocations: 15.8 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.8166, allocations: 25.72 kB / 1.216 GB, free: 5.414 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.8168, allocations: 322.8 kB / 1.216 GB, free: 5.09 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.8169, allocations: 32.78 kB / 1.216 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.828e-05/0.817, allocations: 89.38 kB / 1.217 GB, free: 4.934 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.8172, allocations: 125.3 kB / 1.217 GB, free: 4.777 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.8172, allocations: 4 kB / 1.217 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002072/0.8175, allocations: 133.3 kB / 1.217 GB, free: 4.637 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.8175, allocations: 8 kB / 1.217 GB, free: 4.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.8175, allocations: 3.984 kB / 1.217 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.8175, allocations: 7.938 kB / 1.217 GB, free: 4.617 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.8176, allocations: 23.94 kB / 1.217 GB, free: 4.594 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.8177, allocations: 4.312 kB / 1.217 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.29e-05/0.8177, allocations: 35.67 kB / 1.217 GB, free: 4.555 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.8178, allocations: 4 kB / 1.217 GB, free: 4.551 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.776e-05/0.8179, allocations: 116.1 kB / 1.217 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000155/0.818, allocations: 92.92 kB / 1.217 GB, free: 4.312 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002339/0.8183, allocations: 129.5 kB / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.8183, allocations: 0 / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001884/0.8185, allocations: 129.4 kB / 1.217 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/0.8185, allocations: 4.312 kB / 1.217 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.8185, allocations: 8 kB / 1.217 GB, free: 4.008 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.428e-06/0.8185, allocations: 7.938 kB / 1.217 GB, free: 4 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.891e-05/0.8186, allocations: 23.98 kB / 1.217 GB, free: 3.977 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.8186, allocations: 11.88 kB / 1.217 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.607e-05/0.8187, allocations: 8 kB / 1.217 GB, free: 3.957 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.8187, allocations: 4 kB / 1.217 GB, free: 3.953 MB / 0.9356 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.0001718/0.8189, allocations: 188.2 kB / 1.218 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.615e-05/0.8189, allocations: 11.81 kB / 1.218 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.723e-05/0.819, allocations: 20.92 kB / 1.218 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.819, allocations: 3.938 kB / 1.218 GB, free: 3.723 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.819, allocations: 0 / 1.218 GB, free: 3.723 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.819, allocations: 4 kB / 1.218 GB, free: 3.719 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000614/0.8196, allocations: 477 kB / 1.218 GB, free: 3.184 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.8196, allocations: 0 / 1.218 GB, free: 3.184 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.463e-05/0.8197, allocations: 8.125 kB / 1.218 GB, free: 3.176 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.8197, allocations: 4 kB / 1.218 GB, free: 3.172 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.8197, allocations: 0 / 1.218 GB, free: 3.172 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.8197, allocations: 7.984 kB / 1.218 GB, free: 3.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.8197, allocations: 0 / 1.218 GB, free: 3.164 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.8198, allocations: 119.5 kB / 1.218 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.84e-05/0.8199, allocations: 96.91 kB / 1.218 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.8199, allocations: 0 / 1.218 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.907e-05/0.82, allocations: 4 kB / 1.218 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.322e-05/0.82, allocations: 0 / 1.218 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.82, allocations: 7.938 kB / 1.218 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.829e-05/0.8201, allocations: 128.2 kB / 1.218 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8201, allocations: 0 / 1.218 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000374/0.8205, allocations: 51.84 kB / 1.218 GB, free: 2.719 MB / 0.9356 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.0001002/0.8206, allocations: 103.2 kB / 1.219 GB, free: 2.605 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.8208, allocations: 116.8 kB / 1.219 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.8208, allocations: 0 / 1.219 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.47e-05/0.8209, allocations: 12.19 kB / 1.219 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.8211, allocations: 31.98 kB / 1.219 GB, free: 2.449 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005192/0.8217, allocations: 300.8 kB / 1.219 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.8221, allocations: 0.7241 MB / 1.22 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.8222, allocations: 15.44 kB / 1.22 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.8222, allocations: 0 / 1.22 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of Templates: time 0.003322/0.8255, allocations: 1.465 MB / 1.221 GB, free: 15.89 MB / 0.9512 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