Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.0009588/0.0009587, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006739/0.006739, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.515/1.515, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.52/2.52, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004652/0.0004655, allocations: 11.98 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8652/0.8657, allocations: 142.4 MB / 0.955 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005379/0.8712, allocations: 4 MB / 0.9589 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004181/0.8754, allocations: 1.83 MB / 0.9607 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005003/0.8759, allocations: 10.81 kB / 0.9607 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003936/0.8763, allocations: 73.03 kB / 0.9608 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009181/0.8773, allocations: 247.1 kB / 0.961 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.8781, allocations: 229.3 kB / 0.9613 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001103/0.8792, allocations: 0.8407 MB / 0.9621 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006586/0.8799, allocations: 442.5 kB / 0.9625 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004903/0.8804, allocations: 197.7 kB / 0.9627 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007064/0.8811, allocations: 260.8 kB / 0.9629 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.756e-05/0.8812, allocations: 20.41 kB / 0.963 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006148/0.8818, allocations: 306.8 kB / 0.9633 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.8819, allocations: 132 kB / 0.9634 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002188/0.8822, allocations: 218 kB / 0.9636 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006267/0.8828, allocations: 0.6022 MB / 0.9642 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8828, allocations: 0 / 0.9642 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/0.8828, allocations: 0 / 0.9642 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.8828, allocations: 5.062 kB / 0.9642 GB, free: 1.152 MB / 0.7169 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.001059/0.8839, allocations: 0.6542 MB / 0.9648 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.884, allocations: 10.44 kB / 0.9648 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009828/0.885, allocations: 153.9 kB / 0.965 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.8854, allocations: 333.1 kB / 0.9653 GB, free: 216 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.8854, allocations: 27.19 kB / 0.9653 GB, free: 200 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.722e-05/0.8855, allocations: 38.03 kB / 0.9654 GB, free: 184 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008594/0.8863, allocations: 0.536 MB / 0.9659 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.8864, allocations: 4.781 kB / 0.9659 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.8864, allocations: 16.78 kB / 0.9659 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-05/0.8865, allocations: 31.64 kB / 0.9659 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006484/0.8871, allocations: 386.2 kB / 0.9663 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002778/0.8899, allocations: 2.41 MB / 0.9687 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.8905, allocations: 261 kB / 0.9689 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.8907, allocations: 114.2 kB / 0.969 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.8908, allocations: 6.562 kB / 0.969 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.8908, allocations: 32.59 kB / 0.969 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.954e-06/0.8908, allocations: 0 / 0.969 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002356/0.8932, allocations: 1.141 MB / 0.9702 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.8932, allocations: 53.47 kB / 0.9702 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.8936, allocations: 303.8 kB / 0.9705 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.8936, allocations: 31.48 kB / 0.9705 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.8938, allocations: 224.8 kB / 0.9707 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.604e-05/0.8939, allocations: 85.41 kB / 0.9708 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.8939, allocations: 31.48 kB / 0.9709 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.8941, allocations: 338 kB / 0.9712 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.8943, allocations: 105.5 kB / 0.9713 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.8945, allocations: 195.2 kB / 0.9715 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004284/0.8949, allocations: 313.3 kB / 0.9718 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.8949, allocations: 1 kB / 0.9718 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007703/0.8957, allocations: 443 kB / 0.9722 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.8957, allocations: 6.469 kB / 0.9722 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.8958, allocations: 7.203 kB / 0.9722 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000375/0.8961, allocations: 98.75 kB / 0.9723 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.8964, allocations: 64.25 kB / 0.9724 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003054/0.8995, allocations: 4.079 MB / 0.9763 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.8998, allocations: 7.75 kB / 0.9763 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.8998, allocations: 10.59 kB / 0.9764 GB, free: 6.348 MB / 0.7325 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.0002408/0.9001, allocations: 187.1 kB / 0.9765 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.529e-05/0.9001, allocations: 35.66 kB / 0.9766 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.352e-05/0.9002, allocations: 41.84 kB / 0.9766 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.9002, allocations: 2.5 kB / 0.9766 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.9002, allocations: 1.25 kB / 0.9766 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.9002, allocations: 0 / 0.9766 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004982/0.9008, allocations: 409.2 kB / 0.977 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.9008, allocations: 0 / 0.977 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.901, allocations: 39.31 kB / 0.977 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003019/0.9013, allocations: 90.47 kB / 0.9771 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.9013, allocations: 6.031 kB / 0.9771 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.9042, allocations: 4.072 MB / 0.9811 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9043, allocations: 3.984 kB / 0.9811 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.9051, allocations: 0.552 MB / 0.9817 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.9053, allocations: 129.9 kB / 0.9818 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.744e-05/0.9053, allocations: 5.312 kB / 0.9818 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.9055, allocations: 11.5 kB / 0.9818 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.195e-05/0.9056, allocations: 15.94 kB / 0.9818 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.9056, allocations: 7.969 kB / 0.9818 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002345/0.9058, allocations: 209.9 kB / 0.982 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9058, allocations: 0 / 0.982 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005156/0.9064, allocations: 103.8 kB / 0.9821 GB, free: 0.8711 MB / 0.7325 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.0001454/0.9065, allocations: 104.6 kB / 0.9822 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008805/0.9074, allocations: 0.5995 MB / 0.9828 GB, free: 312 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.9074, allocations: 0.9688 kB / 0.9828 GB, free: 312 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.908, allocations: 476.1 kB / 0.9833 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005423/0.9085, allocations: 79.64 kB / 0.9833 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.9098, allocations: 0.909 MB / 0.9842 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.9103, allocations: 0.8309 MB / 0.985 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002092/0.9105, allocations: 54.44 kB / 0.9851 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.318e-05/0.9105, allocations: 22.53 kB / 0.9851 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of SimCode: time 3.81e-07/0.9105, allocations: 4 kB / 0.9851 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of Templates: time 0.008511/0.9191, allocations: 4.228 MB / 0.9892 GB, free: 10.82 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches