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.001191/0.001191, allocations: 106.7 kB / 16.41 MB, free: 6.512 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.001253/0.001253, allocations: 187 kB / 17.34 MB, free: 5.742 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.366/1.366, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.195/2.195, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.89 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8279/0.8292, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005419/0.8347, allocations: 4.354 MB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002823/0.8375, allocations: 1.864 MB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002913/0.8378, allocations: 8.281 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.8394, allocations: 0.5939 MB / 1.095 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006312/0.84, allocations: 264.8 kB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006856/0.8407, allocations: 254.3 kB / 1.096 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007207/0.8415, allocations: 0.6102 MB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007578/0.8422, allocations: 470.4 kB / 1.097 GB, free: 168 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003288/0.8426, allocations: 252.8 kB / 1.097 GB, free: 56 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004924/0.8431, allocations: 269.9 kB / 1.097 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 8.032e-05/0.8432, allocations: 40.62 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005625/0.8437, allocations: 249.4 kB / 1.098 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.8439, allocations: 154.1 kB / 1.098 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002671/0.8442, allocations: 219.2 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0008717/0.8451, allocations: 0.6102 MB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.8451, allocations: 0 / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.253e-06/0.8451, allocations: 0 / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.8451, allocations: 0 / 1.099 GB, free: 15.45 MB / 0.8731 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.001403/0.8465, allocations: 0.7282 MB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.8466, allocations: 9.719 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.8476, allocations: 150.2 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005562/0.8482, allocations: 331.1 kB / 1.1 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.8482, allocations: 27.69 kB / 1.1 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.381e-05/0.8483, allocations: 30.47 kB / 1.1 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008799/0.8492, allocations: 0.539 MB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.8492, allocations: 1.094 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.8493, allocations: 16.5 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.808e-05/0.8494, allocations: 36.33 kB / 1.1 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007133/0.8501, allocations: 387.7 kB / 1.101 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002787/0.8529, allocations: 2.4 MB / 1.103 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005735/0.8535, allocations: 261.5 kB / 1.103 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.8537, allocations: 115.8 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.8537, allocations: 5.781 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.8537, allocations: 36.92 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.8537, allocations: 0.9062 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002531/0.8563, allocations: 1.121 MB / 1.105 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.8563, allocations: 54.16 kB / 1.105 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.8567, allocations: 302 kB / 1.105 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.8567, allocations: 31.14 kB / 1.105 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.8569, allocations: 227.7 kB / 1.105 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 8.045e-05/0.857, allocations: 88.42 kB / 1.105 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.8571, allocations: 62.8 kB / 1.105 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.8572, allocations: 338.3 kB / 1.106 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.8574, allocations: 108.2 kB / 1.106 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.8577, allocations: 190.5 kB / 1.106 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/0.8581, allocations: 318.9 kB / 1.106 GB, free: 9.836 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.8581, allocations: 1.312 kB / 1.106 GB, free: 9.836 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007915/0.8589, allocations: 442 kB / 1.107 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.859, allocations: 9.359 kB / 1.107 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.859, allocations: 2.75 kB / 1.107 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003699/0.8594, allocations: 103.8 kB / 1.107 GB, free: 9.586 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.8596, allocations: 61.7 kB / 1.107 GB, free: 9.582 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.8631, allocations: 4.383 MB / 1.111 GB, free: 5.258 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.8633, allocations: 16.47 kB / 1.111 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.8634, allocations: 10.72 kB / 1.111 GB, free: 5.246 MB / 0.8731 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.0002519/0.8636, allocations: 183.9 kB / 1.111 GB, free: 5.094 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.8637, allocations: 40.11 kB / 1.111 GB, free: 5.07 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.665e-05/0.8638, allocations: 41.14 kB / 1.111 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.8638, allocations: 3.438 kB / 1.111 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.8638, allocations: 2.141 kB / 1.111 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.8638, allocations: 1.359 kB / 1.111 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005374/0.8644, allocations: 396.4 kB / 1.112 GB, free: 4.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.8644, allocations: 0 / 1.112 GB, free: 4.773 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.8646, allocations: 36.73 kB / 1.112 GB, free: 4.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000311/0.8649, allocations: 95.58 kB / 1.112 GB, free: 4.727 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.8649, allocations: 6.031 kB / 1.112 GB, free: 4.723 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003218/0.8681, allocations: 4.38 MB / 1.116 GB, free: 408 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8682, allocations: 0 / 1.116 GB, free: 408 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008663/0.869, allocations: 0.5628 MB / 1.117 GB, free: 80 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.8692, allocations: 124.3 kB / 1.117 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.8693, allocations: 5.062 kB / 1.117 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.8695, allocations: 12.53 kB / 1.117 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.8696, allocations: 26.14 kB / 1.117 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.8696, allocations: 5.094 kB / 1.117 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002721/0.8699, allocations: 212.8 kB / 1.117 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8699, allocations: 0 / 1.117 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005737/0.8705, allocations: 99.75 kB / 1.117 GB, free: 15.81 MB / 0.8887 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.0001377/0.8706, allocations: 110.9 kB / 1.117 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009459/0.8716, allocations: 0.6022 MB / 1.118 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.8716, allocations: 0.6875 kB / 1.118 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005344/0.8721, allocations: 471.5 kB / 1.118 GB, free: 14.9 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005534/0.8727, allocations: 86.64 kB / 1.118 GB, free: 14.87 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.8742, allocations: 0.7469 MB / 1.119 GB, free: 14.42 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.8747, allocations: 0.8314 MB / 1.12 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.754e-05/0.8748, allocations: 24.75 kB / 1.12 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of SimCode: time 3.71e-07/0.8748, allocations: 1.344 kB / 1.12 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of Templates: time 0.01719/0.892, allocations: 8.679 MB / 1.128 GB, free: 13.05 MB / 0.8887 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/jenkins1/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