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.006521/0.006521, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001602/0.001602, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.04 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.299/2.299, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.91 kB / 0.9508 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077/1.078, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004037/1.082, allocations: 2.503 MB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001366/1.083, allocations: 0.7779 MB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/1.084, allocations: 2.781 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001218/1.085, allocations: 0.5268 MB / 1.092 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002937/1.085, allocations: 116.1 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/1.085, allocations: 111.3 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002681/1.086, allocations: 194.1 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003637/1.086, allocations: 162.4 kB / 1.092 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/1.086, allocations: 77.44 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/1.086, allocations: 93.55 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/1.087, allocations: 12.31 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/1.087, allocations: 116.9 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.853e-05/1.087, allocations: 56.69 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.056e-05/1.087, allocations: 67.92 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003669/1.087, allocations: 228.6 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.087, allocations: 0 / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.995e-06/1.087, allocations: 0.6562 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.592e-06/1.087, allocations: 1 kB / 1.093 GB, free: 2.395 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.0006074/1.088, allocations: 446.5 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/1.088, allocations: 10.27 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004057/1.088, allocations: 47.38 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/1.089, allocations: 224.3 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/1.089, allocations: 9.812 kB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/1.089, allocations: 13.22 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/1.089, allocations: 233.9 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/1.089, allocations: 0.8438 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/1.089, allocations: 5.688 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.862e-05/1.089, allocations: 21.64 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/1.089, allocations: 145.7 kB / 1.094 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009339/1.09, allocations: 1.136 MB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.927e-05/1.09, allocations: 40.91 kB / 1.095 GB, free: 428 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.791e-05/1.091, allocations: 17.17 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/1.091, allocations: 0.75 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.688e-05/1.091, allocations: 40.48 kB / 1.095 GB, free: 368 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.433e-06/1.091, allocations: 0 / 1.095 GB, free: 368 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002063/1.091, allocations: 77.95 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.531e-05/1.091, allocations: 57.03 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/1.091, allocations: 177.4 kB / 1.095 GB, free: 116 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/1.091, allocations: 26.8 kB / 1.095 GB, free: 84 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.782e-05/1.091, allocations: 143.2 kB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/1.091, allocations: 16.58 kB / 1.096 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.283e-05/1.091, allocations: 33.3 kB / 1.096 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000128/1.091, allocations: 320.2 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.952e-05/1.091, allocations: 32.3 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.076e-05/1.091, allocations: 87.44 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/1.092, allocations: 129.6 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.092, allocations: 5.625 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002407/1.092, allocations: 137.1 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/1.092, allocations: 6.766 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/1.092, allocations: 2.406 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/1.092, allocations: 7.5 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/1.092, allocations: 30.86 kB / 1.096 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/1.092, allocations: 3.766 kB / 1.096 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.914e-05/1.092, allocations: 18.61 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/1.092, allocations: 5.625 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001167/1.092, allocations: 123.7 kB / 1.096 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.399e-05/1.092, allocations: 94.73 kB / 1.097 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001712/1.093, allocations: 123.9 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.064e-06/1.093, allocations: 1.562 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002299/1.093, allocations: 132 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/1.093, allocations: 6.75 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/1.093, allocations: 2.625 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.312e-06/1.093, allocations: 7.703 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.127e-05/1.093, allocations: 22.08 kB / 1.097 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/1.093, allocations: 8.609 kB / 1.097 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.411e-05/1.093, allocations: 8.469 kB / 1.097 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/1.093, allocations: 8.906 kB / 1.097 GB, free: 14.84 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.0001096/1.093, allocations: 188.8 kB / 1.097 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/1.093, allocations: 12.89 kB / 1.097 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.781e-05/1.093, allocations: 18.56 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/1.093, allocations: 4.75 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.093, allocations: 0 / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/1.093, allocations: 1.188 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004895/1.094, allocations: 474.8 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.094, allocations: 0.5312 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.769e-05/1.094, allocations: 7.469 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/1.094, allocations: 1.062 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/1.094, allocations: 2.25 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/1.094, allocations: 1.094 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.094, allocations: 6.344 kB / 1.098 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/1.094, allocations: 125 kB / 1.098 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.835e-05/1.094, allocations: 91.88 kB / 1.098 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/1.094, allocations: 6.422 kB / 1.098 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.703e-05/1.094, allocations: 0.625 kB / 1.098 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.061e-05/1.094, allocations: 7.672 kB / 1.098 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/1.094, allocations: 2.938 kB / 1.098 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001055/1.094, allocations: 126.3 kB / 1.098 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.094, allocations: 0 / 1.098 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003844/1.095, allocations: 56.56 kB / 1.098 GB, free: 13.84 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.0001006/1.095, allocations: 96.95 kB / 1.098 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002475/1.095, allocations: 118.2 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.095, allocations: 4.125 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.301e-05/1.095, allocations: 20.03 kB / 1.098 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/1.095, allocations: 17.34 kB / 1.098 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005486/1.096, allocations: 268.9 kB / 1.098 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/1.096, allocations: 0.7241 MB / 1.099 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.813e-05/1.096, allocations: 28.83 kB / 1.099 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.492e-05/1.097, allocations: 16.94 kB / 1.099 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/1.097, allocations: 0 / 1.099 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of Templates: time 0.003435/1.1, allocations: 0.857 MB / 1.1 GB, free: 12.69 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/jenkins/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