Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001327/0.001327, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001415/0.001415, allocations: 215.7 kB / 23.01 MB, free: 4.609 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.244/3.244, allocations: 0.505 GB / 0.8108 GB, free: 22.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002023/0.002023, allocations: 70.83 kB / 1.178 GB, free: 17.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3149, allocations: 180.2 MB / 1.354 GB, free: 8.117 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004219/0.3192, allocations: 2.597 MB / 1.357 GB, free: 5.508 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001474/0.3206, allocations: 0.8024 MB / 1.357 GB, free: 4.703 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.3207, allocations: 4 kB / 1.357 GB, free: 4.699 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.3221, allocations: 0.592 MB / 1.358 GB, free: 4.102 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.3223, allocations: 115.5 kB / 1.358 GB, free: 3.988 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.3226, allocations: 99.8 kB / 1.358 GB, free: 3.891 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.3229, allocations: 203.4 kB / 1.358 GB, free: 3.691 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.3233, allocations: 139.1 kB / 1.359 GB, free: 3.547 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.3234, allocations: 79.77 kB / 1.359 GB, free: 3.469 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.3236, allocations: 107.6 kB / 1.359 GB, free: 3.363 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.3237, allocations: 12 kB / 1.359 GB, free: 3.352 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002083/0.3239, allocations: 119.7 kB / 1.359 GB, free: 3.234 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.003e-05/0.324, allocations: 55.88 kB / 1.359 GB, free: 3.18 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.796e-05/0.324, allocations: 75.61 kB / 1.359 GB, free: 3.105 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.3244, allocations: 223.1 kB / 1.359 GB, free: 2.887 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3244, allocations: 0 / 1.359 GB, free: 2.887 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3244, allocations: 4 kB / 1.359 GB, free: 2.883 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3244, allocations: 0 / 1.359 GB, free: 2.883 MB / 1.045 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.0006675/0.325, allocations: 373.9 kB / 1.36 GB, free: 2.484 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.3251, allocations: 8.031 kB / 1.36 GB, free: 2.477 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003699/0.3255, allocations: 48.8 kB / 1.36 GB, free: 2.43 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.3257, allocations: 158.3 kB / 1.36 GB, free: 2.25 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.3257, allocations: 12.66 kB / 1.36 GB, free: 2.238 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.3258, allocations: 12.38 kB / 1.36 GB, free: 2.227 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.3261, allocations: 231.2 kB / 1.36 GB, free: 1.98 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3261, allocations: 0 / 1.36 GB, free: 1.98 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.3262, allocations: 11.98 kB / 1.36 GB, free: 1.969 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.3262, allocations: 16.2 kB / 1.36 GB, free: 1.953 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.3265, allocations: 148.7 kB / 1.36 GB, free: 1.809 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.3277, allocations: 1.102 MB / 1.361 GB, free: 0.582 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 7.207e-05/0.3277, allocations: 38.56 kB / 1.361 GB, free: 0.5352 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.719e-05/0.3278, allocations: 20.94 kB / 1.361 GB, free: 0.5117 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.3278, allocations: 3.938 kB / 1.361 GB, free: 0.5078 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.3278, allocations: 34.56 kB / 1.361 GB, free: 476 kB / 1.045 GB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.3278, allocations: 0 / 1.361 GB, free: 476 kB / 1.045 GB Notification: Performance of matching and sorting (n=4): time 0.0002082/0.328, allocations: 77.53 kB / 1.361 GB, free: 392 kB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.3281, allocations: 51.41 kB / 1.361 GB, free: 328 kB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.3282, allocations: 180.2 kB / 1.362 GB, free: 140 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.3282, allocations: 25.7 kB / 1.362 GB, free: 108 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.3284, allocations: 147.8 kB / 1.362 GB, free: 15.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.3284, allocations: 15.91 kB / 1.362 GB, free: 15.94 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.357e-05/0.3284, allocations: 33.7 kB / 1.362 GB, free: 15.9 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3286, allocations: 318.8 kB / 1.362 GB, free: 15.58 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.879e-05/0.3286, allocations: 20.86 kB / 1.362 GB, free: 15.55 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.3287, allocations: 104.2 kB / 1.362 GB, free: 15.42 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.3289, allocations: 113.5 kB / 1.362 GB, free: 15.28 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3289, allocations: 8 kB / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002261/0.3291, allocations: 149.3 kB / 1.362 GB, free: 15.12 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3291, allocations: 4 kB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3291, allocations: 4 kB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.3292, allocations: 7.75 kB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.3293, allocations: 27.92 kB / 1.363 GB, free: 15.08 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.3293, allocations: 4.312 kB / 1.363 GB, free: 15.07 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.524e-05/0.3294, allocations: 15.89 kB / 1.363 GB, free: 15.06 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.3294, allocations: 8 kB / 1.363 GB, free: 15.05 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001156/0.3295, allocations: 124.8 kB / 1.363 GB, free: 14.93 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.593e-05/0.3296, allocations: 81.44 kB / 1.363 GB, free: 14.81 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001544/0.3297, allocations: 133.2 kB / 1.363 GB, free: 14.65 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.313e-06/0.3297, allocations: 4 kB / 1.363 GB, free: 14.64 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002072/0.3299, allocations: 133.4 kB / 1.363 GB, free: 14.51 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-06/0.33, allocations: 4.312 kB / 1.363 GB, free: 14.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.33, allocations: 11.94 kB / 1.363 GB, free: 14.49 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.248e-06/0.33, allocations: 4 kB / 1.363 GB, free: 14.49 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.344e-05/0.3301, allocations: 27.92 kB / 1.363 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.3301, allocations: 4 kB / 1.363 GB, free: 14.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.903e-05/0.3301, allocations: 15.89 kB / 1.363 GB, free: 14.44 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.3301, allocations: 4 kB / 1.363 GB, free: 14.44 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 0.0001128/0.3303, allocations: 192.1 kB / 1.363 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.086e-05/0.3303, allocations: 7.953 kB / 1.363 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.3303, allocations: 24.91 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3303, allocations: 3.984 kB / 1.363 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3303, allocations: 0 / 1.363 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.3303, allocations: 0 / 1.363 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004766/0.3308, allocations: 448.1 kB / 1.364 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3308, allocations: 0 / 1.364 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.251e-05/0.3308, allocations: 8.125 kB / 1.364 GB, free: 13.7 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.3309, allocations: 4 kB / 1.364 GB, free: 13.69 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.3309, allocations: 0 / 1.364 GB, free: 13.69 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3309, allocations: 0 / 1.364 GB, free: 13.69 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3309, allocations: 7.984 kB / 1.364 GB, free: 13.68 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.331, allocations: 119.5 kB / 1.364 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.648e-05/0.331, allocations: 15.91 kB / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.3311, allocations: 0 / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.751e-05/0.3311, allocations: 4 kB / 1.364 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.3311, allocations: 7.984 kB / 1.364 GB, free: 13.51 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.3311, allocations: 4 kB / 1.364 GB, free: 13.51 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001082/0.3312, allocations: 124 kB / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3312, allocations: 0 / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003534/0.3316, allocations: 55.83 kB / 1.364 GB, free: 13.33 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 9.532e-05/0.3317, allocations: 107.1 kB / 1.364 GB, free: 13.21 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002145/0.3319, allocations: 105 kB / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3319, allocations: 0 / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.216e-05/0.3319, allocations: 20.11 kB / 1.364 GB, free: 13.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.3322, allocations: 24.38 kB / 1.364 GB, free: 13.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005181/0.3327, allocations: 308.9 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.3331, allocations: 0.7317 MB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.642e-05/0.3331, allocations: 15.44 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of SimCode: time 3.41e-07/0.3331, allocations: 0 / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of Templates: time 0.003168/0.3363, allocations: 1.47 MB / 1.367 GB, free: 10.48 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.30381793100969]