Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001706/0.001706, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.505/1.505, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.993/2.993, allocations: 437.1 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 71.84 kB / 0.8692 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7313/0.7333, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.007053/0.7404, allocations: 4.363 MB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003366/0.7438, allocations: 1.854 MB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.7441, allocations: 11.94 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001659/0.7458, allocations: 0.5908 MB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005667/0.7463, allocations: 262.6 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006645/0.747, allocations: 259.4 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007318/0.7478, allocations: 0.6112 MB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00079/0.7486, allocations: 472.7 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.7489, allocations: 243.2 kB / 1.026 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.7494, allocations: 271 kB / 1.026 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.514e-05/0.7494, allocations: 40 kB / 1.026 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000487/0.7499, allocations: 251.4 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.7501, allocations: 151.6 kB / 1.026 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.7504, allocations: 215 kB / 1.027 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007529/0.7511, allocations: 0.5997 MB / 1.027 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.7512, allocations: 0 / 1.027 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7512, allocations: 0 / 1.027 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.717e-06/0.7512, allocations: 0 / 1.027 GB, free: 8.27 MB / 0.7794 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.001427/0.7526, allocations: 0.7252 MB / 1.028 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.7527, allocations: 8.031 kB / 1.028 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009837/0.7536, allocations: 152.2 kB / 1.028 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004832/0.7541, allocations: 338.5 kB / 1.028 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.7542, allocations: 25.31 kB / 1.028 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-05/0.7543, allocations: 32.38 kB / 1.028 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008332/0.7551, allocations: 0.5356 MB / 1.029 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.7551, allocations: 0 / 1.029 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.7552, allocations: 16 kB / 1.029 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.304e-05/0.7552, allocations: 32.64 kB / 1.029 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006373/0.7559, allocations: 382.3 kB / 1.029 GB, free: 5.914 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.7588, allocations: 2.411 MB / 1.032 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.7594, allocations: 264.2 kB / 1.032 GB, free: 3.016 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.7596, allocations: 112.8 kB / 1.032 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.7596, allocations: 3.984 kB / 1.032 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.7597, allocations: 38.56 kB / 1.032 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.7597, allocations: 0 / 1.032 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002421/0.7621, allocations: 1.118 MB / 1.033 GB, free: 1.637 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.7622, allocations: 55.41 kB / 1.033 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.7625, allocations: 308.4 kB / 1.034 GB, free: 1.262 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.7626, allocations: 25.7 kB / 1.034 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.7627, allocations: 235.6 kB / 1.034 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.536e-05/0.7628, allocations: 82.84 kB / 1.034 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.7629, allocations: 65.94 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001868/0.7631, allocations: 342.8 kB / 1.034 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.7633, allocations: 96.61 kB / 1.034 GB, free: 416 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.7636, allocations: 195.7 kB / 1.035 GB, free: 180 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004858/0.7641, allocations: 310.3 kB / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.7641, allocations: 0 / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008192/0.7649, allocations: 450.4 kB / 1.035 GB, free: 15.39 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.7649, allocations: 8.344 kB / 1.035 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.765, allocations: 8 kB / 1.035 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003786/0.7653, allocations: 94.44 kB / 1.035 GB, free: 15.27 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.7656, allocations: 63.91 kB / 1.035 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/0.7696, allocations: 4.402 MB / 1.04 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002587/0.7699, allocations: 8 kB / 1.04 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.7699, allocations: 8 kB / 1.04 GB, free: 10.37 MB / 0.795 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.000245/0.7702, allocations: 181.8 kB / 1.04 GB, free: 10.18 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.7703, allocations: 35.56 kB / 1.04 GB, free: 10.14 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8e-05/0.7704, allocations: 38.45 kB / 1.04 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.7704, allocations: 11.97 kB / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.7704, allocations: 3.938 kB / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.7704, allocations: 4 kB / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.7709, allocations: 393.4 kB / 1.04 GB, free: 9.652 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.7709, allocations: 4 kB / 1.04 GB, free: 9.648 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.7711, allocations: 35.92 kB / 1.04 GB, free: 9.613 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003118/0.7714, allocations: 90.44 kB / 1.041 GB, free: 9.516 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.7714, allocations: 15.98 kB / 1.041 GB, free: 9.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003922/0.7754, allocations: 4.384 MB / 1.045 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.7754, allocations: 0 / 1.045 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009761/0.7764, allocations: 0.561 MB / 1.045 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.7766, allocations: 128.7 kB / 1.046 GB, free: 3.961 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.7766, allocations: 0 / 1.046 GB, free: 3.961 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.7768, allocations: 12 kB / 1.046 GB, free: 3.949 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.7769, allocations: 19.97 kB / 1.046 GB, free: 3.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.7769, allocations: 8.062 kB / 1.046 GB, free: 3.922 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002842/0.7772, allocations: 211.1 kB / 1.046 GB, free: 3.719 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7772, allocations: 3.938 kB / 1.046 GB, free: 3.715 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005678/0.7778, allocations: 95.94 kB / 1.046 GB, free: 3.621 MB / 0.795 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.0001922/0.778, allocations: 107.2 kB / 1.046 GB, free: 3.508 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001109/0.7791, allocations: 0.6263 MB / 1.047 GB, free: 2.844 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.7791, allocations: 0 / 1.047 GB, free: 2.844 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/0.7798, allocations: 472.5 kB / 1.047 GB, free: 2.344 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005538/0.7803, allocations: 81.91 kB / 1.047 GB, free: 2.27 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.7817, allocations: 0.7173 MB / 1.048 GB, free: 1.531 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.7822, allocations: 0.8311 MB / 1.049 GB, free: 0.6719 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002152/0.7824, allocations: 66.91 kB / 1.049 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.7825, allocations: 23.44 kB / 1.049 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of SimCode: time 5.61e-07/0.7825, allocations: 0 / 1.049 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of Templates: time 0.01066/0.7932, allocations: 4.417 MB / 1.053 GB, free: 12.2 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches