Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 103 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.545/1.545, allocations: 230.6 MB / 252.8 MB, free: 9.141 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.371/3.371, allocations: 0.4899 GB / 0.7916 GB, free: 33.22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002255/0.002255, allocations: 66.5 kB / 1.149 GB, free: 26.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4263/0.4286, allocations: 176.1 MB / 1.321 GB, free: 2.859 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005802/0.4344, allocations: 2.553 MB / 1.324 GB, free: 300 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002069/0.4364, allocations: 0.7907 MB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.4366, allocations: 4 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.4382, allocations: 0.5609 MB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003834/0.4386, allocations: 111.5 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004011/0.439, allocations: 111.7 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.4393, allocations: 199.4 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003846/0.4397, allocations: 142.1 kB / 1.326 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.4398, allocations: 75.77 kB / 1.326 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.4401, allocations: 111.6 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.4401, allocations: 12 kB / 1.326 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.4404, allocations: 119.7 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.831e-05/0.4404, allocations: 51.89 kB / 1.326 GB, free: 14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.4406, allocations: 79.59 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003726/0.441, allocations: 227.1 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.441, allocations: 0 / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.374e-06/0.441, allocations: 4 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.441, allocations: 0 / 1.326 GB, free: 13.7 MB / 1.029 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.0007904/0.4418, allocations: 447 kB / 1.327 GB, free: 13.21 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4418, allocations: 11.98 kB / 1.327 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003971/0.4422, allocations: 52.8 kB / 1.327 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.4425, allocations: 216.2 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.4425, allocations: 12.64 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.4425, allocations: 16.36 kB / 1.327 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.4429, allocations: 231.2 kB / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.4429, allocations: 0 / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.443, allocations: 8 kB / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.377e-05/0.443, allocations: 20.27 kB / 1.327 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.4433, allocations: 140.7 kB / 1.327 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.4446, allocations: 1.135 MB / 1.328 GB, free: 11.2 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.4447, allocations: 42.56 kB / 1.328 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.6e-05/0.4448, allocations: 20.88 kB / 1.328 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.4448, allocations: 3.984 kB / 1.328 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.4448, allocations: 34.56 kB / 1.329 GB, free: 11.07 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.4448, allocations: 0 / 1.329 GB, free: 11.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.0002495/0.4451, allocations: 81.52 kB / 1.329 GB, free: 10.99 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.4452, allocations: 55.41 kB / 1.329 GB, free: 10.92 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.4453, allocations: 171.8 kB / 1.329 GB, free: 10.75 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.4454, allocations: 25.7 kB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.4455, allocations: 151.6 kB / 1.329 GB, free: 10.56 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.4455, allocations: 11.89 kB / 1.329 GB, free: 10.55 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.4456, allocations: 33.72 kB / 1.329 GB, free: 10.51 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001751/0.4457, allocations: 318.8 kB / 1.329 GB, free: 10.19 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.709e-05/0.4458, allocations: 36.78 kB / 1.329 GB, free: 10.15 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.4459, allocations: 88.69 kB / 1.329 GB, free: 10.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.4461, allocations: 121.3 kB / 1.33 GB, free: 9.883 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4461, allocations: 4 kB / 1.33 GB, free: 9.879 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002195/0.4463, allocations: 137.3 kB / 1.33 GB, free: 9.738 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4463, allocations: 4 kB / 1.33 GB, free: 9.734 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.4463, allocations: 15.91 kB / 1.33 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.4464, allocations: 7.938 kB / 1.33 GB, free: 9.711 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.4465, allocations: 32.25 kB / 1.33 GB, free: 9.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.4465, allocations: 4 kB / 1.33 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.8e-05/0.4466, allocations: 15.88 kB / 1.33 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.4466, allocations: 8 kB / 1.33 GB, free: 9.652 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001215/0.4467, allocations: 120.1 kB / 1.33 GB, free: 9.531 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.71e-05/0.4468, allocations: 89.42 kB / 1.33 GB, free: 9.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001809/0.447, allocations: 125.2 kB / 1.33 GB, free: 9.254 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.062e-06/0.447, allocations: 0 / 1.33 GB, free: 9.254 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002032/0.4472, allocations: 141.9 kB / 1.33 GB, free: 9.109 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.4472, allocations: 9.875 kB / 1.33 GB, free: 9.102 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.4472, allocations: 4 kB / 1.33 GB, free: 9.098 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-06/0.4472, allocations: 4 kB / 1.33 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.4473, allocations: 23.98 kB / 1.33 GB, free: 9.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.4473, allocations: 11.88 kB / 1.33 GB, free: 9.059 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.4474, allocations: 15.89 kB / 1.33 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.4474, allocations: 8 kB / 1.33 GB, free: 9.035 MB / 1.029 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.0001346/0.4475, allocations: 184.3 kB / 1.33 GB, free: 8.848 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.043e-05/0.4476, allocations: 11.95 kB / 1.331 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.087e-05/0.4476, allocations: 16.92 kB / 1.331 GB, free: 8.816 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4476, allocations: 3.938 kB / 1.331 GB, free: 8.812 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4476, allocations: 0 / 1.331 GB, free: 8.812 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4476, allocations: 0 / 1.331 GB, free: 8.812 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.4481, allocations: 473.1 kB / 1.331 GB, free: 8.281 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4481, allocations: 4.031 kB / 1.331 GB, free: 8.277 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.531e-05/0.4482, allocations: 8 kB / 1.331 GB, free: 8.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4482, allocations: 4 kB / 1.331 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.4482, allocations: 0 / 1.331 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4482, allocations: 4 kB / 1.331 GB, free: 8.262 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4482, allocations: 3.984 kB / 1.331 GB, free: 8.258 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.4483, allocations: 115.5 kB / 1.331 GB, free: 8.117 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.74e-05/0.4484, allocations: 89.05 kB / 1.331 GB, free: 8.012 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.4484, allocations: 0 / 1.331 GB, free: 8.012 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.798e-05/0.4485, allocations: 8 kB / 1.331 GB, free: 8.004 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.616e-05/0.4485, allocations: 0 / 1.331 GB, free: 8.004 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.4485, allocations: 4 kB / 1.331 GB, free: 8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001177/0.4486, allocations: 120 kB / 1.331 GB, free: 7.883 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4486, allocations: 4 kB / 1.331 GB, free: 7.879 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003538/0.449, allocations: 55.84 kB / 1.331 GB, free: 7.824 MB / 1.029 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.0001274/0.4491, allocations: 107.1 kB / 1.331 GB, free: 7.707 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002315/0.4493, allocations: 108.6 kB / 1.332 GB, free: 7.602 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4493, allocations: 4.25 kB / 1.332 GB, free: 7.598 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.652e-05/0.4494, allocations: 19.94 kB / 1.332 GB, free: 7.578 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.4496, allocations: 19.98 kB / 1.332 GB, free: 7.559 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005377/0.4502, allocations: 286.8 kB / 1.332 GB, free: 7.234 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.4506, allocations: 0.7242 MB / 1.333 GB, free: 6.484 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.994e-05/0.4507, allocations: 28.61 kB / 1.333 GB, free: 6.453 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.4507, allocations: 11.44 kB / 1.333 GB, free: 6.445 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.4507, allocations: 4 kB / 1.333 GB, free: 6.441 MB / 1.029 GB Notification: Performance of Templates: time 0.003978/0.4547, allocations: 0.9193 MB / 1.334 GB, free: 5.531 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.357401865068823]