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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001128/0.001128, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008381/0.008382, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.429/1.429, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.947/2.947, allocations: 462.6 MB / 0.7363 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003686/0.0003687, allocations: 12.73 kB / 0.9027 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4091, allocations: 159.6 MB / 1.059 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005109/0.4142, allocations: 4.01 MB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003266/0.4176, allocations: 1.827 MB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.4178, allocations: 7.938 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.4181, allocations: 75.47 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006312/0.4187, allocations: 250.8 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006596/0.4194, allocations: 234.2 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000828/0.4202, allocations: 0.8335 MB / 1.066 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005892/0.4208, allocations: 439.4 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.4211, allocations: 195.1 kB / 1.066 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.4215, allocations: 263 kB / 1.067 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/0.4216, allocations: 20 kB / 1.067 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005512/0.4221, allocations: 311.3 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.4223, allocations: 127.6 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.4225, allocations: 224.6 kB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006715/0.4232, allocations: 0.5919 MB / 1.068 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4232, allocations: 0 / 1.068 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.245e-06/0.4232, allocations: 0 / 1.068 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.4232, allocations: 0 / 1.068 GB, free: 11.6 MB / 0.8262 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.001225/0.4244, allocations: 0.659 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.4245, allocations: 12.03 kB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009999/0.4255, allocations: 156.2 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004592/0.426, allocations: 326.6 kB / 1.069 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.426, allocations: 21.38 kB / 1.069 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.247e-05/0.4261, allocations: 36.36 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008328/0.4269, allocations: 0.5395 MB / 1.069 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.427, allocations: 3.938 kB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.786e-05/0.427, allocations: 19.94 kB / 1.069 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.936e-05/0.4271, allocations: 32.64 kB / 1.07 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005701/0.4277, allocations: 386.3 kB / 1.07 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002758/0.4304, allocations: 2.419 MB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.431, allocations: 254.5 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.4311, allocations: 108.8 kB / 1.073 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.4312, allocations: 4 kB / 1.073 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.4312, allocations: 38.56 kB / 1.073 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 2.945e-06/0.4312, allocations: 3.938 kB / 1.073 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002268/0.4335, allocations: 1.126 MB / 1.074 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.4335, allocations: 55.41 kB / 1.074 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.4339, allocations: 312.3 kB / 1.074 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.4339, allocations: 25.7 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.4341, allocations: 227.6 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.563e-05/0.4341, allocations: 82.83 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-05/0.4342, allocations: 33.7 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4343, allocations: 342.8 kB / 1.075 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4345, allocations: 100.6 kB / 1.075 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.4347, allocations: 191.7 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.4351, allocations: 324.1 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.4351, allocations: 0 / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007158/0.4358, allocations: 445.8 kB / 1.076 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.4359, allocations: 7.984 kB / 1.076 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.4359, allocations: 4 kB / 1.076 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003566/0.4362, allocations: 94.69 kB / 1.076 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.4365, allocations: 67.89 kB / 1.076 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/0.4396, allocations: 4.072 MB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.4398, allocations: 12 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.4399, allocations: 12 kB / 1.08 GB, free: 14.11 MB / 0.8419 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.0002192/0.4401, allocations: 185.7 kB / 1.08 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.4401, allocations: 31.62 kB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.48e-05/0.4402, allocations: 42.31 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4402, allocations: 4.094 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.4403, allocations: 4 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.4403, allocations: 0 / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004931/0.4408, allocations: 401.3 kB / 1.081 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4408, allocations: 0 / 1.081 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.441, allocations: 43.84 kB / 1.081 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002905/0.4413, allocations: 90.5 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.4413, allocations: 4 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002877/0.4442, allocations: 4.075 MB / 1.085 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4442, allocations: 4.219 kB / 1.085 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007948/0.445, allocations: 0.5546 MB / 1.085 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.4452, allocations: 128.7 kB / 1.085 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.4452, allocations: 4 kB / 1.085 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.4454, allocations: 16.06 kB / 1.085 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.4455, allocations: 15.97 kB / 1.085 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.4455, allocations: 8 kB / 1.085 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002078/0.4457, allocations: 211.1 kB / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4457, allocations: 0 / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00047/0.4462, allocations: 100 kB / 1.086 GB, free: 7.703 MB / 0.8419 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.0001329/0.4463, allocations: 104.5 kB / 1.086 GB, free: 7.594 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008474/0.4472, allocations: 0.6056 MB / 1.086 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4472, allocations: 4 kB / 1.086 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.4477, allocations: 471.9 kB / 1.087 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.4482, allocations: 74.45 kB / 1.087 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.4496, allocations: 0.8941 MB / 1.088 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.4501, allocations: 0.8385 MB / 1.089 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002292/0.4503, allocations: 62.92 kB / 1.089 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.242e-05/0.4504, allocations: 23.44 kB / 1.089 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4504, allocations: 0 / 1.089 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of Templates: time 0.009137/0.4595, allocations: 4.218 MB / 1.093 GB, free: 328 kB / 0.8419 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