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.007192/0.007192, allocations: 104.8 kB / 15.74 MB, free: 6.039 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.001412/0.001412, allocations: 196.3 kB / 16.68 MB, free: 5.957 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.259/2.259, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 59.91 kB / 0.9508 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.054/1.055, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004178/1.06, allocations: 2.507 MB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001514/1.061, allocations: 0.7804 MB / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/1.061, allocations: 2.812 kB / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001371/1.063, allocations: 0.5381 MB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003101/1.063, allocations: 107.2 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/1.063, allocations: 112.7 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003215/1.064, allocations: 189.7 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004244/1.064, allocations: 162.5 kB / 1.092 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/1.064, allocations: 77.69 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/1.065, allocations: 93.86 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/1.065, allocations: 12.5 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/1.065, allocations: 112.7 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/1.065, allocations: 60.81 kB / 1.093 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001043/1.065, allocations: 68.41 kB / 1.093 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004237/1.066, allocations: 225 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.066, allocations: 1.062 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.973e-06/1.066, allocations: 0 / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.694e-06/1.066, allocations: 4.562 kB / 1.093 GB, free: 2.438 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.0006314/1.066, allocations: 443.1 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/1.066, allocations: 9.281 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004353/1.067, allocations: 48.02 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/1.067, allocations: 227.6 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/1.067, allocations: 10.06 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/1.067, allocations: 17.59 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000419/1.068, allocations: 233.9 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/1.068, allocations: 0 / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/1.068, allocations: 7.484 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/1.068, allocations: 17.5 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002893/1.068, allocations: 144.4 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/1.069, allocations: 1.132 MB / 1.095 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/1.069, allocations: 49.27 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.764e-05/1.069, allocations: 18.02 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/1.069, allocations: 1.062 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/1.069, allocations: 31.66 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.683e-06/1.069, allocations: 0 / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002955/1.069, allocations: 77.31 kB / 1.095 GB, free: 364 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/1.07, allocations: 53.09 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/1.07, allocations: 173.4 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/1.07, allocations: 34.44 kB / 1.095 GB, free: 132 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/1.07, allocations: 143.6 kB / 1.096 GB, free: 0 / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/1.07, allocations: 12.28 kB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/1.07, allocations: 33.19 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001627/1.07, allocations: 321.1 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.705e-05/1.07, allocations: 23.53 kB / 1.096 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/1.07, allocations: 92.22 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/1.071, allocations: 121.4 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/1.071, allocations: 0.6875 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003047/1.071, allocations: 144.8 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/1.071, allocations: 7.031 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/1.071, allocations: 2.312 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-05/1.071, allocations: 8.375 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/1.071, allocations: 27.05 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/1.071, allocations: 3.609 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.842e-05/1.071, allocations: 17.69 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/1.071, allocations: 10.16 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001594/1.072, allocations: 124.8 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001181/1.072, allocations: 87.81 kB / 1.097 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002049/1.072, allocations: 125 kB / 1.097 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.657e-06/1.072, allocations: 0.8125 kB / 1.097 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002747/1.072, allocations: 135.8 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/1.072, allocations: 7.219 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/1.072, allocations: 2.5 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.114e-06/1.072, allocations: 11.75 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/1.072, allocations: 22.48 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/1.072, allocations: 12.02 kB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.933e-05/1.072, allocations: 7.781 kB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/1.072, allocations: 11.06 kB / 1.097 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.000124/1.073, allocations: 179.5 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/1.073, allocations: 9.297 kB / 1.097 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.119e-05/1.073, allocations: 17.81 kB / 1.097 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/1.073, allocations: 8.438 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/1.073, allocations: 5.297 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.073, allocations: 0.7812 kB / 1.097 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006232/1.073, allocations: 474.2 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/1.073, allocations: 1 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.663e-05/1.073, allocations: 8.078 kB / 1.098 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/1.073, allocations: 4.625 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/1.073, allocations: 2.219 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/1.073, allocations: 1.953 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.325e-06/1.073, allocations: 4.875 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/1.074, allocations: 121.5 kB / 1.098 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.188e-05/1.074, allocations: 87.19 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/1.074, allocations: 2.422 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.641e-05/1.074, allocations: 1.406 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.933e-05/1.074, allocations: 3.516 kB / 1.098 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/1.074, allocations: 6.188 kB / 1.098 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000114/1.074, allocations: 122.4 kB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.884e-06/1.074, allocations: 0 / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004257/1.074, allocations: 60.97 kB / 1.098 GB, free: 13.91 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.0001455/1.075, allocations: 100.8 kB / 1.098 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003018/1.075, allocations: 109.3 kB / 1.098 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/1.075, allocations: 5.188 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.698e-05/1.075, allocations: 16.53 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/1.075, allocations: 22.83 kB / 1.098 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000654/1.076, allocations: 268.6 kB / 1.098 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/1.076, allocations: 0.72 MB / 1.099 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.94e-05/1.076, allocations: 28.91 kB / 1.099 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/1.076, allocations: 12.81 kB / 1.099 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/1.076, allocations: 1.188 kB / 1.099 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of Templates: time 0.004116/1.081, allocations: 0.8797 MB / 1.1 GB, free: 12.74 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