Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007774/0.007773, allocations: 99.31 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 185.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.805/2.805, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 64.11 kB / 1.054 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3576, allocations: 157.4 MB / 1.208 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006853/0.3645, allocations: 4.361 MB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003492/0.368, allocations: 1.862 MB / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004913/0.3686, allocations: 11.94 kB / 1.214 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001894/0.3705, allocations: 0.5973 MB / 1.214 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000875/0.3714, allocations: 254.6 kB / 1.215 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009459/0.3723, allocations: 243.4 kB / 1.215 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00138/0.3737, allocations: 0.6228 MB / 1.215 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.3748, allocations: 466.8 kB / 1.216 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006218/0.3754, allocations: 247.1 kB / 1.216 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007895/0.3762, allocations: 271 kB / 1.216 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.3763, allocations: 36 kB / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007063/0.377, allocations: 255.4 kB / 1.217 GB, free: 484 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002303/0.3773, allocations: 151.6 kB / 1.217 GB, free: 332 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003193/0.3776, allocations: 218.9 kB / 1.217 GB, free: 112 kB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.3788, allocations: 0.5997 MB / 1.218 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.157e-05/0.3789, allocations: 7.984 kB / 1.218 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 8.747e-06/0.3789, allocations: 0 / 1.218 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.089e-05/0.3789, allocations: 3.938 kB / 1.218 GB, free: 15.5 MB / 0.9825 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.002134/0.3811, allocations: 0.7174 MB / 1.218 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.3811, allocations: 16.62 kB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.3823, allocations: 148.2 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006682/0.383, allocations: 342.5 kB / 1.219 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.383, allocations: 29.36 kB / 1.219 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.572e-05/0.3831, allocations: 28.38 kB / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009966/0.3841, allocations: 0.5395 MB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3842, allocations: 0 / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/0.3842, allocations: 16 kB / 1.219 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.793e-05/0.3843, allocations: 36.62 kB / 1.219 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007117/0.385, allocations: 382.3 kB / 1.22 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003067/0.3881, allocations: 2.396 MB / 1.222 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/0.3887, allocations: 264.9 kB / 1.222 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3888, allocations: 112.8 kB / 1.223 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.3889, allocations: 3.938 kB / 1.223 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.3889, allocations: 38.56 kB / 1.223 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=20): time 2.454e-06/0.3889, allocations: 0 / 1.223 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23): time 0.002323/0.3913, allocations: 1.129 MB / 1.224 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.3913, allocations: 55.41 kB / 1.224 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.3917, allocations: 308.4 kB / 1.224 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.3917, allocations: 25.7 kB / 1.224 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.3919, allocations: 231.6 kB / 1.224 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.278e-05/0.392, allocations: 82.81 kB / 1.224 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.3921, allocations: 69.94 kB / 1.224 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.3922, allocations: 338.8 kB / 1.225 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.3924, allocations: 100.6 kB / 1.225 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.3926, allocations: 199.7 kB / 1.225 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.393, allocations: 311.5 kB / 1.225 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.393, allocations: 0 / 1.225 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007495/0.3938, allocations: 445.9 kB / 1.226 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3938, allocations: 7.938 kB / 1.226 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3938, allocations: 4 kB / 1.226 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003761/0.3942, allocations: 98.73 kB / 1.226 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.3945, allocations: 63.84 kB / 1.226 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.3978, allocations: 4.391 MB / 1.23 GB, free: 1.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.3981, allocations: 8 kB / 1.23 GB, free: 1.605 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.3981, allocations: 8 kB / 1.23 GB, free: 1.598 MB / 0.9825 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.0002657/0.3984, allocations: 189.8 kB / 1.23 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.3984, allocations: 31.66 kB / 1.23 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-05/0.3985, allocations: 42.31 kB / 1.23 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3985, allocations: 0 / 1.23 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.3986, allocations: 7.938 kB / 1.23 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3986, allocations: 0 / 1.23 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005222/0.3991, allocations: 401.4 kB / 1.231 GB, free: 0.8828 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.3991, allocations: 4 kB / 1.231 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.3993, allocations: 39.84 kB / 1.231 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003167/0.3996, allocations: 94.53 kB / 1.231 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.3997, allocations: 4 kB / 1.231 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/0.4028, allocations: 4.391 MB / 1.235 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4028, allocations: 0 / 1.235 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007992/0.4036, allocations: 0.5513 MB / 1.236 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.4038, allocations: 128.7 kB / 1.236 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.4038, allocations: 4.125 kB / 1.236 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.404, allocations: 12 kB / 1.236 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.4041, allocations: 23.91 kB / 1.236 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.4041, allocations: 4 kB / 1.236 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002227/0.4044, allocations: 215.1 kB / 1.236 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4044, allocations: 0 / 1.236 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004946/0.4049, allocations: 95.94 kB / 1.236 GB, free: 10.86 MB / 0.9981 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.0001805/0.405, allocations: 109.7 kB / 1.236 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000928/0.406, allocations: 0.6094 MB / 1.237 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.406, allocations: 0 / 1.237 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.4065, allocations: 475.9 kB / 1.237 GB, free: 9.594 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.407, allocations: 84.72 kB / 1.238 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.4083, allocations: 0.6907 MB / 1.238 GB, free: 8.793 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.4087, allocations: 0.8311 MB / 1.239 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002187/0.409, allocations: 62.92 kB / 1.239 GB, free: 7.871 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.225e-05/0.409, allocations: 23.44 kB / 1.239 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of SimCode: time 2.164e-06/0.409, allocations: 0 / 1.239 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of Templates: time 0.009369/0.4184, allocations: 4.58 MB / 1.244 GB, free: 3.312 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches