Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001516/0.001516, allocations: 109.6 kB / 16.41 MB, free: 6.406 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.001761/0.001761, allocations: 190.1 kB / 17.34 MB, free: 5.695 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.198/2.198, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 71.83 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8628/0.8643, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003776/0.8681, allocations: 2.505 MB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.8694, allocations: 0.7731 MB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.8695, allocations: 11.22 kB / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.8707, allocations: 0.5272 MB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002757/0.871, allocations: 108.2 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003173/0.8713, allocations: 113.7 kB / 1.093 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002685/0.8716, allocations: 193.9 kB / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000356/0.872, allocations: 158.6 kB / 1.093 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.8721, allocations: 85.05 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.8723, allocations: 90.33 kB / 1.093 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.8724, allocations: 13.19 kB / 1.093 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.8726, allocations: 116.4 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.343e-05/0.8727, allocations: 60.58 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.952e-05/0.8727, allocations: 71.61 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.8731, allocations: 218.3 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.8731, allocations: 0 / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.8731, allocations: 0 / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.8731, allocations: 0 / 1.093 GB, free: 2.43 MB / 0.8575 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.0005482/0.8737, allocations: 452.3 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.8737, allocations: 9.594 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003867/0.8741, allocations: 43.62 kB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.8743, allocations: 222.8 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.8744, allocations: 11.03 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.8744, allocations: 16.81 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.8748, allocations: 233.7 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.8748, allocations: 1.656 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.8748, allocations: 9.109 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.97e-05/0.8749, allocations: 14.69 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.8752, allocations: 148.4 kB / 1.095 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009618/0.8761, allocations: 1.128 MB / 1.096 GB, free: 500 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.202e-05/0.8762, allocations: 45.58 kB / 1.096 GB, free: 464 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.457e-05/0.8763, allocations: 17.2 kB / 1.096 GB, free: 452 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.8763, allocations: 4.781 kB / 1.096 GB, free: 448 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.8763, allocations: 32.95 kB / 1.096 GB, free: 408 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.8763, allocations: 3.938 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0001975/0.8765, allocations: 81.47 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.8766, allocations: 52.95 kB / 1.096 GB, free: 284 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.8767, allocations: 176.8 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.8767, allocations: 26.27 kB / 1.096 GB, free: 120 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.134e-05/0.8768, allocations: 148 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.8769, allocations: 12.41 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/0.8769, allocations: 28.42 kB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.877, allocations: 321.9 kB / 1.097 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.441e-05/0.8771, allocations: 26.91 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.821e-05/0.8772, allocations: 88.03 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.8774, allocations: 129.4 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.8774, allocations: 1.281 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002461/0.8776, allocations: 133.6 kB / 1.097 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.8777, allocations: 9.719 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.8777, allocations: 2.75 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.8777, allocations: 7.859 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.8778, allocations: 26.97 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.8779, allocations: 4.188 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.845e-05/0.8779, allocations: 25.56 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.878, allocations: 6.438 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001142/0.8781, allocations: 123.4 kB / 1.097 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.7e-05/0.8782, allocations: 92.11 kB / 1.097 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001436/0.8783, allocations: 119.9 kB / 1.097 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.334e-06/0.8783, allocations: 1.094 kB / 1.097 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002315/0.8786, allocations: 135.7 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.8786, allocations: 6.797 kB / 1.098 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.8786, allocations: 3.312 kB / 1.098 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.871e-06/0.8786, allocations: 3.375 kB / 1.098 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.657e-05/0.8787, allocations: 26.45 kB / 1.098 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.8787, allocations: 12.8 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.34e-05/0.8788, allocations: 7.344 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.8788, allocations: 6.219 kB / 1.098 GB, free: 14.89 MB / 0.8731 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.0001012/0.8789, allocations: 188.6 kB / 1.098 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.879, allocations: 8.375 kB / 1.098 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.576e-05/0.879, allocations: 14.23 kB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.879, allocations: 5 kB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.879, allocations: 0 / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.879, allocations: 6.078 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.8795, allocations: 474 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.8795, allocations: 0.7812 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.8796, allocations: 8.062 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.8796, allocations: 12.86 kB / 1.098 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.8796, allocations: 2 kB / 1.098 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.8796, allocations: 5.844 kB / 1.098 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.8796, allocations: 0.7812 kB / 1.098 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.8798, allocations: 109.3 kB / 1.098 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.361e-05/0.8798, allocations: 96.36 kB / 1.098 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.8799, allocations: 5.891 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.469e-05/0.8799, allocations: 1.5 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.8799, allocations: 7.734 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.8799, allocations: 1.375 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001093/0.88, allocations: 127.1 kB / 1.099 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8801, allocations: 0 / 1.099 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003842/0.8804, allocations: 56.22 kB / 1.099 GB, free: 13.89 MB / 0.8731 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.0001185/0.8806, allocations: 101.1 kB / 1.099 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002594/0.8808, allocations: 113.2 kB / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8808, allocations: 0 / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.012e-05/0.8809, allocations: 13.55 kB / 1.099 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.8812, allocations: 22.34 kB / 1.099 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005802/0.8818, allocations: 306.5 kB / 1.099 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.8821, allocations: 0.7209 MB / 1.1 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.8821, allocations: 13.78 kB / 1.1 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.8821, allocations: 0 / 1.1 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of Templates: time 0.003794/0.8859, allocations: 1.461 MB / 1.101 GB, free: 12.68 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches