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.001319/0.001319, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001303/0.001303, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.561/2.561, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.44 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3317, allocations: 153 MB / 1.027 GB, free: 2.09 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005801/0.3376, allocations: 4.358 MB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002695/0.3403, allocations: 1.858 MB / 1.033 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.3405, allocations: 11.94 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.342, allocations: 0.5953 MB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005454/0.3426, allocations: 262.6 kB / 1.034 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.3432, allocations: 250.6 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000603/0.3438, allocations: 0.6112 MB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006895/0.3445, allocations: 470.8 kB / 1.035 GB, free: 9.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00027/0.3448, allocations: 251.1 kB / 1.035 GB, free: 9.422 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004316/0.3452, allocations: 267 kB / 1.035 GB, free: 9.16 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.62e-05/0.3453, allocations: 40 kB / 1.035 GB, free: 9.121 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003689/0.3457, allocations: 255.4 kB / 1.036 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.3458, allocations: 143.6 kB / 1.036 GB, free: 8.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.346, allocations: 223 kB / 1.036 GB, free: 8.512 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006172/0.3466, allocations: 0.6075 MB / 1.037 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3467, allocations: 0 / 1.037 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3467, allocations: 0 / 1.037 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.286e-05/0.3467, allocations: 0 / 1.037 GB, free: 7.902 MB / 0.8106 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.001241/0.3479, allocations: 0.729 MB / 1.037 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.348, allocations: 8.031 kB / 1.037 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009604/0.3489, allocations: 152.2 kB / 1.037 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.3494, allocations: 342.5 kB / 1.038 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.3495, allocations: 25.38 kB / 1.038 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.959e-05/0.3495, allocations: 32.36 kB / 1.038 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007599/0.3503, allocations: 0.5356 MB / 1.038 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3503, allocations: 7.938 kB / 1.038 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.3504, allocations: 19.98 kB / 1.038 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-05/0.3504, allocations: 32.64 kB / 1.038 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.351, allocations: 382.3 kB / 1.039 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002498/0.3535, allocations: 2.395 MB / 1.041 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004995/0.354, allocations: 266.5 kB / 1.041 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3542, allocations: 104.8 kB / 1.042 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.3542, allocations: 4 kB / 1.042 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.3543, allocations: 34.56 kB / 1.042 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.3543, allocations: 0 / 1.042 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002046/0.3563, allocations: 1.127 MB / 1.043 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3564, allocations: 55.41 kB / 1.043 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.3567, allocations: 312.3 kB / 1.043 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.3567, allocations: 25.7 kB / 1.043 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3569, allocations: 235.6 kB / 1.043 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.018e-05/0.3569, allocations: 74.89 kB / 1.043 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.549e-05/0.357, allocations: 65.94 kB / 1.043 GB, free: 484 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3572, allocations: 338.8 kB / 1.044 GB, free: 136 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.3573, allocations: 100.6 kB / 1.044 GB, free: 36 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002533/0.3576, allocations: 195.8 kB / 1.044 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.358, allocations: 320.8 kB / 1.044 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.358, allocations: 0 / 1.044 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007061/0.3587, allocations: 445.7 kB / 1.045 GB, free: 15 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.3587, allocations: 7.984 kB / 1.045 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3587, allocations: 4.344 kB / 1.045 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/0.3591, allocations: 94.5 kB / 1.045 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.3594, allocations: 63.91 kB / 1.045 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00326/0.3626, allocations: 4.391 MB / 1.049 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.3629, allocations: 12.28 kB / 1.049 GB, free: 10 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.3629, allocations: 16 kB / 1.049 GB, free: 9.988 MB / 0.8262 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.0002069/0.3631, allocations: 177.7 kB / 1.049 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.3632, allocations: 39.55 kB / 1.049 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.553e-05/0.3633, allocations: 42.31 kB / 1.049 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.3633, allocations: 0 / 1.049 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.3633, allocations: 4 kB / 1.049 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3633, allocations: 7.938 kB / 1.049 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000449/0.3637, allocations: 397.3 kB / 1.05 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3637, allocations: 0 / 1.05 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.3639, allocations: 47.78 kB / 1.05 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002924/0.3643, allocations: 90.5 kB / 1.05 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.3643, allocations: 4 kB / 1.05 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003071/0.3674, allocations: 4.38 MB / 1.054 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3674, allocations: 0 / 1.054 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000762/0.3681, allocations: 0.5602 MB / 1.055 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.3683, allocations: 128.7 kB / 1.055 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.3683, allocations: 0 / 1.055 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.3686, allocations: 15.98 kB / 1.055 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.3686, allocations: 16.08 kB / 1.055 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.3686, allocations: 7.984 kB / 1.055 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002022/0.3688, allocations: 215.1 kB / 1.055 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3688, allocations: 0 / 1.055 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004538/0.3693, allocations: 104 kB / 1.055 GB, free: 3.254 MB / 0.8262 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.0001426/0.3695, allocations: 103.2 kB / 1.055 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008692/0.3703, allocations: 0.6017 MB / 1.056 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3703, allocations: 0 / 1.056 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.3708, allocations: 475.9 kB / 1.056 GB, free: 2 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.3713, allocations: 74.05 kB / 1.056 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.3725, allocations: 0.704 MB / 1.057 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.373, allocations: 0.8387 MB / 1.058 GB, free: 340 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001682/0.3732, allocations: 58.92 kB / 1.058 GB, free: 280 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.046e-05/0.3732, allocations: 23.44 kB / 1.058 GB, free: 256 kB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3732, allocations: 0 / 1.058 GB, free: 256 kB / 0.8262 GB Notification: Performance of Templates: time 0.008595/0.3818, allocations: 4.43 MB / 1.062 GB, free: 11.87 MB / 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 -s gbode -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/jenkins1/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