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.001615/0.001615, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.001753/0.001753, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.509/1.509, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.272/2.272, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 65.77 kB / 0.814 GB, free: 32.78 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3145, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006514/0.3211, allocations: 4.361 MB / 0.9554 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003062/0.3242, allocations: 1.858 MB / 0.9572 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.3244, allocations: 8 kB / 0.9572 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.3259, allocations: 0.6146 MB / 0.9578 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005016/0.3265, allocations: 254.6 kB / 0.958 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006013/0.3271, allocations: 255.3 kB / 0.9583 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005784/0.3277, allocations: 0.6112 MB / 0.9589 GB, free: 76 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006326/0.3283, allocations: 462.8 kB / 0.9593 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.3286, allocations: 251.1 kB / 0.9595 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.329, allocations: 263 kB / 0.9598 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.329, allocations: 36 kB / 0.9598 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003639/0.3294, allocations: 255.4 kB / 0.9601 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.3295, allocations: 155.6 kB / 0.9602 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.3297, allocations: 222.9 kB / 0.9604 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0005868/0.3303, allocations: 0.5997 MB / 0.961 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3304, allocations: 4 kB / 0.961 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3304, allocations: 4 kB / 0.961 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.3304, allocations: 0 / 0.961 GB, free: 13.86 MB / 0.7481 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.001135/0.3315, allocations: 0.7213 MB / 0.9617 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.3316, allocations: 12.03 kB / 0.9617 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009212/0.3325, allocations: 144.3 kB / 0.9619 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.333, allocations: 350.3 kB / 0.9622 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.333, allocations: 25.38 kB / 0.9622 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.3331, allocations: 32.38 kB / 0.9623 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/0.3338, allocations: 0.5395 MB / 0.9628 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3338, allocations: 0 / 0.9628 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.3339, allocations: 16 kB / 0.9628 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.383e-05/0.3339, allocations: 28.64 kB / 0.9628 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005452/0.3345, allocations: 386.3 kB / 0.9632 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002509/0.337, allocations: 2.399 MB / 0.9656 GB, free: 8.875 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/0.3375, allocations: 266.5 kB / 0.9658 GB, free: 8.605 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.3377, allocations: 114.7 kB / 0.9659 GB, free: 8.492 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.3377, allocations: 0 / 0.9659 GB, free: 8.492 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.3378, allocations: 38.56 kB / 0.966 GB, free: 8.445 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.092e-06/0.3378, allocations: 0 / 0.966 GB, free: 8.445 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002115/0.3399, allocations: 1.118 MB / 0.967 GB, free: 7.23 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.3399, allocations: 51.41 kB / 0.9671 GB, free: 7.168 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.3402, allocations: 308.3 kB / 0.9674 GB, free: 6.859 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.3403, allocations: 33.7 kB / 0.9674 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.3404, allocations: 231.6 kB / 0.9676 GB, free: 6.59 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/0.3405, allocations: 78.91 kB / 0.9677 GB, free: 6.512 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.3406, allocations: 65.94 kB / 0.9678 GB, free: 6.438 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3408, allocations: 338.8 kB / 0.9681 GB, free: 6.098 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.3409, allocations: 108.5 kB / 0.9682 GB, free: 5.992 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002152/0.3411, allocations: 195.7 kB / 0.9684 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004005/0.3415, allocations: 315.5 kB / 0.9687 GB, free: 5.418 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3416, allocations: 0 / 0.9687 GB, free: 5.418 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007111/0.3423, allocations: 445.8 kB / 0.9691 GB, free: 4.969 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.3423, allocations: 8 kB / 0.9691 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.3423, allocations: 0 / 0.9691 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003358/0.3427, allocations: 106.7 kB / 0.9692 GB, free: 4.848 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.3429, allocations: 59.91 kB / 0.9693 GB, free: 4.789 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/0.3462, allocations: 4.383 MB / 0.9736 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.3464, allocations: 16.03 kB / 0.9736 GB, free: 15.96 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.3464, allocations: 12 kB / 0.9736 GB, free: 15.95 MB / 0.7637 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.000192/0.3466, allocations: 185.8 kB / 0.9738 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.3467, allocations: 35.56 kB / 0.9738 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.283e-05/0.3468, allocations: 46.25 kB / 0.9739 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3468, allocations: 7.984 kB / 0.9739 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.3468, allocations: 0 / 0.9739 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3468, allocations: 0 / 0.9739 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.3472, allocations: 397.4 kB / 0.9742 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3472, allocations: 0 / 0.9742 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.3474, allocations: 43.92 kB / 0.9743 GB, free: 15.19 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002808/0.3477, allocations: 86.5 kB / 0.9744 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.3478, allocations: 7.984 kB / 0.9744 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003074/0.3508, allocations: 4.387 MB / 0.9787 GB, free: 10.29 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3508, allocations: 0 / 0.9787 GB, free: 10.29 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.3516, allocations: 0.5587 MB / 0.9792 GB, free: 9.703 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.3518, allocations: 124.7 kB / 0.9793 GB, free: 9.562 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.3518, allocations: 8.125 kB / 0.9793 GB, free: 9.555 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.352, allocations: 12 kB / 0.9793 GB, free: 9.543 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.3521, allocations: 23.91 kB / 0.9794 GB, free: 9.52 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.3521, allocations: 8 kB / 0.9794 GB, free: 9.512 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002102/0.3523, allocations: 207.1 kB / 0.9796 GB, free: 9.309 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.555e-06/0.3523, allocations: 0 / 0.9796 GB, free: 9.309 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0005549/0.3529, allocations: 103.9 kB / 0.9797 GB, free: 9.207 MB / 0.7637 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.0001338/0.353, allocations: 107.2 kB / 0.9798 GB, free: 9.09 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0008013/0.3538, allocations: 0.6058 MB / 0.9804 GB, free: 8.445 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.3538, allocations: 0 / 0.9804 GB, free: 8.445 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.3543, allocations: 471.8 kB / 0.9808 GB, free: 7.945 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.3548, allocations: 78.66 kB / 0.9809 GB, free: 7.871 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.3559, allocations: 0.7097 MB / 0.9816 GB, free: 7.145 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.3563, allocations: 0.835 MB / 0.9824 GB, free: 6.277 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000166/0.3565, allocations: 62.92 kB / 0.9825 GB, free: 6.211 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.3566, allocations: 23.44 kB / 0.9825 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of SimCode: time 4.41e-07/0.3566, allocations: 0 / 0.9825 GB, free: 6.188 MB / 0.7637 GB Notification: Performance of Templates: time 0.008617/0.3652, allocations: 4.425 MB / 0.9868 GB, free: 1.809 MB / 0.7637 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 -s cvode -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