Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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.001586/0.001586, allocations: 114.9 kB / 17.13 MB, free: 6.008 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.002422/0.002422, allocations: 212.7 kB / 20.1 MB, free: 3.055 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.663/1.663, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.989/2.989, allocations: 0.49 GB / 0.7923 GB, free: 1.449 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.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel") [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.002071/0.002071, allocations: 66.25 kB / 1.15 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038/1.04, allocations: 176.1 MB / 1.322 GB, free: 25.05 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004926/1.045, allocations: 4.42 MB / 1.326 GB, free: 22.06 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002697/1.048, allocations: 1.923 MB / 1.328 GB, free: 20.73 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002479/1.048, allocations: 15.12 kB / 1.328 GB, free: 20.72 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001613/1.049, allocations: 0.6161 MB / 1.329 GB, free: 20.35 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006307/1.05, allocations: 263.3 kB / 1.329 GB, free: 20.2 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006692/1.051, allocations: 253 kB / 1.329 GB, free: 20.07 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000775/1.051, allocations: 0.6122 MB / 1.33 GB, free: 19.8 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006613/1.052, allocations: 362.2 kB / 1.33 GB, free: 19.65 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003726/1.052, allocations: 250.4 kB / 1.33 GB, free: 19.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005246/1.053, allocations: 287.7 kB / 1.331 GB, free: 19.43 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.395e-05/1.053, allocations: 36.72 kB / 1.331 GB, free: 19.43 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005701/1.054, allocations: 260.7 kB / 1.331 GB, free: 19.35 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001875/1.054, allocations: 161.7 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002388/1.054, allocations: 223.1 kB / 1.331 GB, free: 19.14 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0008668/1.055, allocations: 0.6089 MB / 1.332 GB, free: 18.93 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/1.055, allocations: 0.9062 kB / 1.332 GB, free: 18.93 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.373e-06/1.055, allocations: 0 / 1.332 GB, free: 18.93 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.354e-05/1.055, allocations: 0.6562 kB / 1.332 GB, free: 18.93 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.00129/1.056, allocations: 0.7301 MB / 1.333 GB, free: 18.36 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/1.056, allocations: 16.61 kB / 1.333 GB, free: 18.36 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/1.057, allocations: 151.7 kB / 1.333 GB, free: 18.32 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000467/1.058, allocations: 346 kB / 1.333 GB, free: 18.04 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/1.058, allocations: 26.84 kB / 1.333 GB, free: 18.03 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.076e-05/1.058, allocations: 39.23 kB / 1.333 GB, free: 18.01 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008869/1.059, allocations: 0.5309 MB / 1.334 GB, free: 17.74 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/1.059, allocations: 0.9062 kB / 1.334 GB, free: 17.74 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.956e-05/1.059, allocations: 16.61 kB / 1.334 GB, free: 17.73 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.348e-05/1.059, allocations: 33.05 kB / 1.334 GB, free: 17.73 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006767/1.06, allocations: 386.1 kB / 1.334 GB, free: 17.6 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/1.062, allocations: 2.402 MB / 1.336 GB, free: 15.54 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006012/1.063, allocations: 246.8 kB / 1.337 GB, free: 15.43 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/1.063, allocations: 99.86 kB / 1.337 GB, free: 15.39 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/1.063, allocations: 1.375 kB / 1.337 GB, free: 15.39 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/1.063, allocations: 34.11 kB / 1.337 GB, free: 15.35 MB / 1.061 GB Notification: Performance of pre-optimization done (n=20): time 1.913e-06/1.063, allocations: 0 / 1.337 GB, free: 15.35 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.002244/1.065, allocations: 1.13 MB / 1.338 GB, free: 14.6 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/1.065, allocations: 55.17 kB / 1.338 GB, free: 14.54 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/1.066, allocations: 304.9 kB / 1.338 GB, free: 14.36 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/1.066, allocations: 36.45 kB / 1.338 GB, free: 14.32 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/1.066, allocations: 231.9 kB / 1.339 GB, free: 14.12 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.332e-05/1.066, allocations: 92.97 kB / 1.339 GB, free: 14.05 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/1.066, allocations: 68.86 kB / 1.339 GB, free: 14 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.35e-05/1.066, allocations: 340.8 kB / 1.339 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/1.066, allocations: 99.11 kB / 1.339 GB, free: 13.64 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/1.067, allocations: 195.3 kB / 1.339 GB, free: 13.5 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/1.067, allocations: 311 kB / 1.34 GB, free: 13.3 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/1.067, allocations: 1.531 kB / 1.34 GB, free: 13.3 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007391/1.068, allocations: 448.8 kB / 1.34 GB, free: 13.09 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/1.068, allocations: 7.75 kB / 1.34 GB, free: 13.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/1.068, allocations: 7.75 kB / 1.34 GB, free: 13.08 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003962/1.068, allocations: 91.42 kB / 1.34 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/1.068, allocations: 61.7 kB / 1.34 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002549/1.071, allocations: 4.399 MB / 1.344 GB, free: 8.703 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/1.071, allocations: 11.98 kB / 1.345 GB, free: 8.695 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/1.071, allocations: 10.94 kB / 1.345 GB, free: 8.695 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002094/1.071, allocations: 175.9 kB / 1.345 GB, free: 8.551 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/1.071, allocations: 39.72 kB / 1.345 GB, free: 8.527 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.213e-05/1.072, allocations: 42.47 kB / 1.345 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/1.072, allocations: 2.188 kB / 1.345 GB, free: 8.5 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.072, allocations: 5.094 kB / 1.345 GB, free: 8.496 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/1.072, allocations: 2.203 kB / 1.345 GB, free: 8.496 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005015/1.072, allocations: 396.6 kB / 1.345 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/1.072, allocations: 1.094 kB / 1.345 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/1.072, allocations: 36.86 kB / 1.345 GB, free: 8.223 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003266/1.073, allocations: 95.16 kB / 1.345 GB, free: 8.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/1.073, allocations: 5.156 kB / 1.345 GB, free: 8.176 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002491/1.075, allocations: 4.381 MB / 1.35 GB, free: 3.855 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.075, allocations: 1.5 kB / 1.35 GB, free: 3.855 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/1.076, allocations: 0.5568 MB / 1.35 GB, free: 3.535 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/1.076, allocations: 124.5 kB / 1.35 GB, free: 3.418 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.885e-05/1.076, allocations: 6.266 kB / 1.35 GB, free: 3.414 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/1.076, allocations: 11.44 kB / 1.35 GB, free: 3.41 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/1.076, allocations: 23.53 kB / 1.35 GB, free: 3.402 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/1.076, allocations: 7.641 kB / 1.35 GB, free: 3.398 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002389/1.077, allocations: 217.4 kB / 1.35 GB, free: 3.273 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/1.077, allocations: 4.062 kB / 1.35 GB, free: 3.27 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0005444/1.077, allocations: 98.91 kB / 1.351 GB, free: 3.258 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001248/1.077, allocations: 106.6 kB / 1.351 GB, free: 3.164 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0008204/1.078, allocations: 0.5857 MB / 1.351 GB, free: 2.742 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.078, allocations: 1 kB / 1.351 GB, free: 2.742 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000452/1.079, allocations: 472.5 kB / 1.352 GB, free: 2.355 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/1.079, allocations: 87.92 kB / 1.352 GB, free: 2.316 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/1.08, allocations: 0.7664 MB / 1.353 GB, free: 1.844 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/1.081, allocations: 0.8283 MB / 1.353 GB, free: 1.129 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.874e-05/1.081, allocations: 28.41 kB / 1.353 GB, free: 1.121 MB / 1.061 GB Notification: Performance of SimCode: time 4.21e-07/1.081, allocations: 0 / 1.353 GB, free: 1.121 MB / 1.061 GB Notification: Performance of Templates: time 0.0148/1.096, allocations: 8.701 MB / 1.362 GB, free: 480 kB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.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: 13.78081586600456]