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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009255/0.0009256, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001127/0.001127, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.517/2.517, allocations: 390.9 MB / 0.666 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005047/0.0005048, allocations: 8 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8207, allocations: 142.4 MB / 0.9544 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004815/0.8256, allocations: 3.832 MB / 0.9582 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002795/0.8284, allocations: 1.738 MB / 0.9599 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002623/0.8287, allocations: 10.03 kB / 0.9599 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.829, allocations: 76.94 kB / 0.9599 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005631/0.8296, allocations: 205.1 kB / 0.9601 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005485/0.8301, allocations: 178.3 kB / 0.9603 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007113/0.8309, allocations: 0.6847 MB / 0.961 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005144/0.8314, allocations: 393.4 kB / 0.9614 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.8317, allocations: 199 kB / 0.9615 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.8322, allocations: 244.9 kB / 0.9618 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.8323, allocations: 19.72 kB / 0.9618 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003489/0.8326, allocations: 126.5 kB / 0.9619 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.8328, allocations: 129.5 kB / 0.962 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.8329, allocations: 101.2 kB / 0.9621 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005309/0.8334, allocations: 464.9 kB / 0.9626 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.8334, allocations: 0 / 0.9626 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.695e-06/0.8335, allocations: 0.9062 kB / 0.9626 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.8335, allocations: 0 / 0.9626 GB, free: 1.602 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.001167/0.8346, allocations: 0.6554 MB / 0.9632 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.8347, allocations: 9.125 kB / 0.9632 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009565/0.8357, allocations: 153.3 kB / 0.9634 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.8361, allocations: 332.2 kB / 0.9637 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.8361, allocations: 26.3 kB / 0.9637 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.371e-05/0.8362, allocations: 38.39 kB / 0.9638 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008044/0.837, allocations: 0.5305 MB / 0.9643 GB, free: 280 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.837, allocations: 0 / 0.9643 GB, free: 280 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.8371, allocations: 19.78 kB / 0.9643 GB, free: 264 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.395e-05/0.8371, allocations: 35.28 kB / 0.9643 GB, free: 252 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006053/0.8378, allocations: 387.7 kB / 0.9647 GB, free: 60 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/0.8407, allocations: 2.402 MB / 0.967 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006055/0.8413, allocations: 271.4 kB / 0.9673 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.8415, allocations: 106.3 kB / 0.9674 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.8415, allocations: 6.156 kB / 0.9674 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.8415, allocations: 32.56 kB / 0.9674 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.552e-06/0.8416, allocations: 0 / 0.9674 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002443/0.844, allocations: 1.127 MB / 0.9685 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.8441, allocations: 58.19 kB / 0.9686 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.8445, allocations: 297.4 kB / 0.9689 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.8445, allocations: 31.92 kB / 0.9689 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.8447, allocations: 229.1 kB / 0.9691 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.8e-05/0.8448, allocations: 85.02 kB / 0.9692 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.734e-05/0.8448, allocations: 6 kB / 0.9692 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.845, allocations: 340.8 kB / 0.9695 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.8452, allocations: 101 kB / 0.9696 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.8454, allocations: 198.5 kB / 0.9698 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.8457, allocations: 131.1 kB / 0.97 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.8457, allocations: 1 kB / 0.97 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008093/0.8465, allocations: 446.5 kB / 0.9704 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.8465, allocations: 5.844 kB / 0.9704 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.8466, allocations: 2.125 kB / 0.9704 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000363/0.8469, allocations: 104.4 kB / 0.9705 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.8472, allocations: 59.84 kB / 0.9705 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003357/0.8506, allocations: 4.064 MB / 0.9745 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.8508, allocations: 16.3 kB / 0.9745 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.8509, allocations: 14.88 kB / 0.9745 GB, free: 6.988 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002689/0.8512, allocations: 182.7 kB / 0.9747 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.8512, allocations: 31.97 kB / 0.9747 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.545e-05/0.8513, allocations: 37.75 kB / 0.9748 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.8513, allocations: 2.375 kB / 0.9748 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.8513, allocations: 2 kB / 0.9748 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.8514, allocations: 7.938 kB / 0.9748 GB, free: 6.777 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005255/0.8519, allocations: 401.7 kB / 0.9752 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.8519, allocations: 0 / 0.9752 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001968/0.8521, allocations: 34.81 kB / 0.9752 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002944/0.8524, allocations: 98.34 kB / 0.9753 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.8524, allocations: 1.344 kB / 0.9753 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003114/0.8556, allocations: 4.065 MB / 0.9793 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.8556, allocations: 0.8125 kB / 0.9793 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008937/0.8565, allocations: 0.5631 MB / 0.9798 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001523/0.8566, allocations: 129 kB / 0.9799 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.8567, allocations: 1.031 kB / 0.98 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.8569, allocations: 19.11 kB / 0.98 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.8569, allocations: 17.05 kB / 0.98 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.857, allocations: 4.344 kB / 0.98 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002493/0.8572, allocations: 211.5 kB / 0.9802 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8572, allocations: 1.125 kB / 0.9802 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005521/0.8578, allocations: 94.69 kB / 0.9803 GB, free: 1.531 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001513/0.8579, allocations: 108.4 kB / 0.9804 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009073/0.8589, allocations: 0.6048 MB / 0.981 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.8589, allocations: 5.125 kB / 0.981 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005288/0.8594, allocations: 476.1 kB / 0.9814 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005131/0.8599, allocations: 79.91 kB / 0.9815 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.8613, allocations: 0.8549 MB / 0.9823 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.8618, allocations: 0.8346 MB / 0.9832 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000224/0.862, allocations: 61.83 kB / 0.9832 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.8621, allocations: 23.69 kB / 0.9832 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/0.8621, allocations: 3.938 kB / 0.9832 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of Templates: time 0.008814/0.8709, allocations: 4.094 MB / 0.9872 GB, free: 12.31 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