Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.001312/0.001312, allocations: 110.2 kB / 19.69 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.001493/0.001493, allocations: 211.9 kB / 23 MB, free: 4.562 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.488/1.488, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.259/3.259, allocations: 0.505 GB / 0.8108 GB, free: 21.97 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.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") [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.002761/0.002761, allocations: 69.27 kB / 1.178 GB, free: 16.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4093, allocations: 180.2 MB / 1.354 GB, free: 7.926 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002812/0.4121, allocations: 1.458 MB / 1.355 GB, free: 6.457 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003648/0.4158, allocations: 2.717 MB / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.548e-05/0.4158, allocations: 0 / 1.358 GB, free: 3.734 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001655/0.4175, allocations: 0.5916 MB / 1.359 GB, free: 3.141 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.418e-05/0.4175, allocations: 23.91 kB / 1.359 GB, free: 3.117 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 4.659e-06/0.4176, allocations: 0 / 1.359 GB, free: 3.117 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.4178, allocations: 162.9 kB / 1.359 GB, free: 2.957 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 6.714e-05/0.4179, allocations: 12.53 kB / 1.359 GB, free: 2.945 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.451e-05/0.418, allocations: 63.72 kB / 1.359 GB, free: 2.883 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.4182, allocations: 79.58 kB / 1.359 GB, free: 2.805 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.4182, allocations: 4 kB / 1.359 GB, free: 2.801 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.4193, allocations: 471.3 kB / 1.359 GB, free: 2.34 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.4193, allocations: 35.78 kB / 1.36 GB, free: 2.305 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.4194, allocations: 99.42 kB / 1.36 GB, free: 2.207 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006725/0.4201, allocations: 434 kB / 1.36 GB, free: 1.781 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.4201, allocations: 0 / 1.36 GB, free: 1.781 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.393e-06/0.4201, allocations: 0 / 1.36 GB, free: 1.781 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.4201, allocations: 0 / 1.36 GB, free: 1.781 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0008166/0.4209, allocations: 496.7 kB / 1.361 GB, free: 1.262 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.421, allocations: 12.02 kB / 1.361 GB, free: 1.25 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.4212, allocations: 108 kB / 1.361 GB, free: 1.145 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.4214, allocations: 244.5 kB / 1.361 GB, free: 0.8828 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.433e-05/0.4215, allocations: 150.9 kB / 1.361 GB, free: 0.7344 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-05/0.4216, allocations: 158.9 kB / 1.361 GB, free: 0.5781 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.791e-05/0.4216, allocations: 105.5 kB / 1.361 GB, free: 480 kB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.4217, allocations: 79.47 kB / 1.361 GB, free: 400 kB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.475e-05/0.4217, allocations: 158.5 kB / 1.361 GB, free: 240 kB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.959e-05/0.4218, allocations: 158.5 kB / 1.362 GB, free: 80 kB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.944e-05/0.4219, allocations: 150.6 kB / 1.362 GB, free: 15.93 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.4223, allocations: 0.5085 MB / 1.362 GB, free: 15.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.4224, allocations: 173.1 kB / 1.362 GB, free: 15.2 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.228e-05/0.4225, allocations: 80.14 kB / 1.363 GB, free: 15.12 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.4225, allocations: 75.28 kB / 1.363 GB, free: 15.04 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/0.4226, allocations: 109.9 kB / 1.363 GB, free: 14.93 MB / 1.061 GB Notification: Performance of pre-optimization done (n=0): time 1.283e-06/0.4226, allocations: 0 / 1.363 GB, free: 14.93 MB / 1.061 GB Notification: Performance of matching and sorting (n=0): time 0.0001865/0.4227, allocations: 65.42 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.4228, allocations: 126.7 kB / 1.363 GB, free: 14.72 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004783/0.4233, allocations: 433.3 kB / 1.363 GB, free: 14.29 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.4233, allocations: 29.7 kB / 1.363 GB, free: 14.25 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.4234, allocations: 144.5 kB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.537e-06/0.4234, allocations: 0 / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.4235, allocations: 89.61 kB / 1.364 GB, free: 14.01 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4237, allocations: 346.8 kB / 1.364 GB, free: 13.66 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.4238, allocations: 96.61 kB / 1.364 GB, free: 13.57 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.424, allocations: 165.9 kB / 1.364 GB, free: 13.38 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.4243, allocations: 301.6 kB / 1.364 GB, free: 13.07 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4243, allocations: 4 kB / 1.364 GB, free: 13.06 MB / 1.061 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005093/0.4248, allocations: 325.1 kB / 1.365 GB, free: 12.74 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.4248, allocations: 8 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4248, allocations: 3.938 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.4249, allocations: 4 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.507e-06/0.4249, allocations: 3.938 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.4249, allocations: 4 kB / 1.365 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.425, allocations: 43.52 kB / 1.365 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.425, allocations: 4 kB / 1.365 GB, free: 12.67 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0002787/0.4253, allocations: 257.1 kB / 1.365 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.4254, allocations: 128.7 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.272e-05/0.4255, allocations: 114.8 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.209e-05/0.4256, allocations: 180.3 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.804e-05/0.4257, allocations: 184.2 kB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.837e-05/0.4257, allocations: 184.3 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.4261, allocations: 448.2 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.395e-05/0.4261, allocations: 108.9 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.73e-05/0.4262, allocations: 101 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-05/0.4262, allocations: 180.2 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-05/0.4263, allocations: 184.2 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-05/0.4264, allocations: 192.2 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.363e-05/0.4265, allocations: 176.5 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.4267, allocations: 327.6 kB / 1.367 GB, free: 9.801 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.4268, allocations: 128.8 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.4269, allocations: 188.1 kB / 1.368 GB, free: 9.477 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.427, allocations: 105 kB / 1.368 GB, free: 9.367 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.309e-05/0.4271, allocations: 180.2 kB / 1.368 GB, free: 9.184 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.4271, allocations: 105 kB / 1.368 GB, free: 9.074 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002869/0.4274, allocations: 279.1 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4274, allocations: 3.938 kB / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004206/0.4278, allocations: 83.92 kB / 1.368 GB, free: 8.715 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0004045/0.4282, allocations: 302.2 kB / 1.369 GB, free: 8.41 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002317/0.4285, allocations: 115.9 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4285, allocations: 4 kB / 1.369 GB, free: 8.293 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.206e-06/0.4285, allocations: 3.938 kB / 1.369 GB, free: 8.289 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.4289, allocations: 465.6 kB / 1.369 GB, free: 7.832 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007088/0.4296, allocations: 0.524 MB / 1.37 GB, free: 7.27 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.43, allocations: 0.7743 MB / 1.371 GB, free: 6.469 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.175e-05/0.43, allocations: 11.44 kB / 1.371 GB, free: 6.457 MB / 1.061 GB Notification: Performance of SimCode: time 4.71e-07/0.43, allocations: 0 / 1.371 GB, free: 6.457 MB / 1.061 GB Notification: Performance of Templates: time 0.005585/0.4356, allocations: 3.165 MB / 1.374 GB, free: 3.293 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.67252397199627]