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.001864/0.001864, allocations: 116.5 kB / 17.13 MB, free: 5.945 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.002225/0.002225, allocations: 210.5 kB / 20.09 MB, free: 2.992 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.507/1.507, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.95/2.95, allocations: 0.49 GB / 0.7923 GB, free: 1.301 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.002097/0.002097, allocations: 67.84 kB / 1.15 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8757/0.8778, allocations: 176.1 MB / 1.322 GB, free: 25.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003317/0.8811, allocations: 2.543 MB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001133/0.8822, allocations: 0.7844 MB / 1.325 GB, free: 22.82 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.411e-05/0.8823, allocations: 6.812 kB / 1.325 GB, free: 22.82 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.8834, allocations: 0.5834 MB / 1.326 GB, free: 22.43 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002327/0.8837, allocations: 106.7 kB / 1.326 GB, free: 22.37 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.8839, allocations: 108.9 kB / 1.326 GB, free: 22.32 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.8842, allocations: 190.8 kB / 1.326 GB, free: 22.24 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/0.8844, allocations: 145.9 kB / 1.326 GB, free: 22.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.725e-05/0.8845, allocations: 86.83 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.8847, allocations: 104.4 kB / 1.326 GB, free: 22.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.8848, allocations: 11.41 kB / 1.326 GB, free: 22.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.8849, allocations: 117.4 kB / 1.327 GB, free: 22.05 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.885, allocations: 57.41 kB / 1.327 GB, free: 22.02 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.546e-05/0.885, allocations: 73.52 kB / 1.327 GB, free: 21.98 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003106/0.8854, allocations: 224.3 kB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.8854, allocations: 0 / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.303e-06/0.8854, allocations: 0 / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.8854, allocations: 3.234 kB / 1.327 GB, free: 21.9 MB / 1.061 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.000577/0.8859, allocations: 450.1 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.886, allocations: 14.08 kB / 1.327 GB, free: 21.47 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003808/0.8864, allocations: 46.27 kB / 1.327 GB, free: 21.46 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.8866, allocations: 234.1 kB / 1.328 GB, free: 21.23 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.8866, allocations: 6.625 kB / 1.328 GB, free: 21.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.8866, allocations: 12.94 kB / 1.328 GB, free: 21.22 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003613/0.887, allocations: 226.2 kB / 1.328 GB, free: 21.09 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.887, allocations: 0.625 kB / 1.328 GB, free: 21.09 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.887, allocations: 10.38 kB / 1.328 GB, free: 21.09 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-05/0.887, allocations: 18.53 kB / 1.328 GB, free: 21.08 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.8873, allocations: 150.2 kB / 1.328 GB, free: 21.03 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009032/0.8882, allocations: 1.135 MB / 1.329 GB, free: 19.96 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 8.128e-05/0.8883, allocations: 35.08 kB / 1.329 GB, free: 19.93 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.836e-05/0.8883, allocations: 18.66 kB / 1.329 GB, free: 19.92 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.8883, allocations: 0.9688 kB / 1.329 GB, free: 19.92 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.8883, allocations: 35.09 kB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.8883, allocations: 3.938 kB / 1.329 GB, free: 19.87 MB / 1.061 GB Notification: Performance of matching and sorting (n=4): time 0.0002109/0.8886, allocations: 86.84 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.8886, allocations: 55.97 kB / 1.329 GB, free: 19.75 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.8887, allocations: 170.3 kB / 1.33 GB, free: 19.62 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.216e-06/0.8887, allocations: 25.7 kB / 1.33 GB, free: 19.59 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.261e-05/0.8888, allocations: 143.6 kB / 1.33 GB, free: 19.46 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.8888, allocations: 17.28 kB / 1.33 GB, free: 19.45 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.8889, allocations: 32.03 kB / 1.33 GB, free: 19.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.8889, allocations: 317.1 kB / 1.33 GB, free: 19.11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.949e-05/0.889, allocations: 31.12 kB / 1.33 GB, free: 19.1 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.877e-05/0.889, allocations: 87.92 kB / 1.33 GB, free: 19 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.8892, allocations: 131.5 kB / 1.33 GB, free: 18.88 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.8892, allocations: 0.7188 kB / 1.33 GB, free: 18.88 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002111/0.8894, allocations: 144.2 kB / 1.33 GB, free: 18.79 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.8894, allocations: 5.844 kB / 1.33 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.8894, allocations: 2.812 kB / 1.33 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.8894, allocations: 11.75 kB / 1.33 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.8895, allocations: 22.84 kB / 1.33 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.8896, allocations: 7.938 kB / 1.33 GB, free: 18.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.675e-05/0.8896, allocations: 13.67 kB / 1.33 GB, free: 18.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.8896, allocations: 13.08 kB / 1.33 GB, free: 18.77 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.478e-05/0.8897, allocations: 118.5 kB / 1.331 GB, free: 18.68 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.425e-05/0.8898, allocations: 87.66 kB / 1.331 GB, free: 18.58 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001069/0.8899, allocations: 126.9 kB / 1.331 GB, free: 18.46 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.224e-06/0.8899, allocations: 0.8438 kB / 1.331 GB, free: 18.46 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001925/0.8901, allocations: 136 kB / 1.331 GB, free: 18.38 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.8901, allocations: 5.75 kB / 1.331 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.8901, allocations: 5.562 kB / 1.331 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.428e-06/0.8901, allocations: 3.344 kB / 1.331 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.038e-05/0.8902, allocations: 23.84 kB / 1.331 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.8902, allocations: 11.14 kB / 1.331 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.679e-05/0.8903, allocations: 15.48 kB / 1.331 GB, free: 18.36 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.8903, allocations: 5.469 kB / 1.331 GB, free: 18.36 MB / 1.061 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 5.618e-05/0.8903, allocations: 192 kB / 1.331 GB, free: 18.17 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.8904, allocations: 8.484 kB / 1.331 GB, free: 18.17 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.161e-05/0.8904, allocations: 15.81 kB / 1.331 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.8904, allocations: 5 kB / 1.331 GB, free: 18.15 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.8904, allocations: 0 / 1.331 GB, free: 18.15 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.8904, allocations: 0.6875 kB / 1.331 GB, free: 18.15 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003441/0.8908, allocations: 472.8 kB / 1.332 GB, free: 17.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.8908, allocations: 5.438 kB / 1.332 GB, free: 17.7 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.394e-05/0.8908, allocations: 11.17 kB / 1.332 GB, free: 17.7 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.8908, allocations: 5.938 kB / 1.332 GB, free: 17.69 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.8908, allocations: 1.406 kB / 1.332 GB, free: 17.69 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.8908, allocations: 1.562 kB / 1.332 GB, free: 17.69 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8908, allocations: 1.094 kB / 1.332 GB, free: 17.69 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.8909, allocations: 113.6 kB / 1.332 GB, free: 17.58 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.543e-05/0.891, allocations: 99.53 kB / 1.332 GB, free: 17.47 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.891, allocations: 2.641 kB / 1.332 GB, free: 17.47 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.651e-05/0.891, allocations: 1.219 kB / 1.332 GB, free: 17.47 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.734e-05/0.891, allocations: 3.172 kB / 1.332 GB, free: 17.47 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.891, allocations: 2.156 kB / 1.332 GB, free: 17.47 MB / 1.061 GB Notification: Performance of sorting global known variables: time 8.864e-05/0.8911, allocations: 135 kB / 1.332 GB, free: 17.38 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.8911, allocations: 1.062 kB / 1.332 GB, free: 17.38 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003647/0.8915, allocations: 56.92 kB / 1.332 GB, free: 17.36 MB / 1.061 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 8.887e-05/0.8916, allocations: 96.06 kB / 1.332 GB, free: 17.27 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002258/0.8918, allocations: 115.1 kB / 1.332 GB, free: 17.23 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8918, allocations: 0 / 1.332 GB, free: 17.23 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.677e-05/0.8918, allocations: 15.53 kB / 1.332 GB, free: 17.22 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.8921, allocations: 28.89 kB / 1.332 GB, free: 17.21 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004746/0.8926, allocations: 308.9 kB / 1.333 GB, free: 16.96 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.8928, allocations: 0.7323 MB / 1.333 GB, free: 16.25 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.8928, allocations: 13.22 kB / 1.333 GB, free: 16.25 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.8928, allocations: 0 / 1.333 GB, free: 16.25 MB / 1.061 GB Notification: Performance of Templates: time 0.003642/0.8965, allocations: 1.471 MB / 1.335 GB, free: 16.12 MB / 1.061 GB " [Timeout remaining time 299] 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/jenkins1/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: 11.433476474994677]