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.001225/0.001225, allocations: 112.3 kB / 15.99 MB, free: 5.914 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.001364/0.001365, allocations: 188.5 kB / 16.91 MB, free: 5.758 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.422/1.422, allocations: 222.9 MB / 240.6 MB, free: 13.72 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.215/2.215, allocations: 390.2 MB / 0.665 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.08 kB / 0.8127 GB, free: 32.54 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2539, allocations: 140.4 MB / 0.9498 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006564/0.2605, allocations: 4.394 MB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003058/0.2636, allocations: 1.842 MB / 0.9559 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.2639, allocations: 15.94 kB / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001671/0.2656, allocations: 0.5606 MB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0006648/0.2663, allocations: 242.9 kB / 0.9566 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.267, allocations: 231.4 kB / 0.9569 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007293/0.2677, allocations: 0.6151 MB / 0.9575 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008181/0.2685, allocations: 0.5068 MB / 0.958 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003478/0.2689, allocations: 247.2 kB / 0.9582 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005371/0.2695, allocations: 279 kB / 0.9585 GB, free: 304 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.2e-05/0.2695, allocations: 44 kB / 0.9585 GB, free: 260 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004596/0.27, allocations: 251.4 kB / 0.9587 GB, free: 8 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.2702, allocations: 143.7 kB / 0.9589 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.2705, allocations: 222.9 kB / 0.9591 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0005886/0.2711, allocations: 482.9 kB / 0.9596 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2711, allocations: 4 kB / 0.9596 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2711, allocations: 0 / 0.9596 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.358e-05/0.2711, allocations: 0 / 0.9596 GB, free: 15.17 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.001387/0.2725, allocations: 0.7174 MB / 0.9603 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.2725, allocations: 8.031 kB / 0.9603 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.2736, allocations: 152.3 kB / 0.9604 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.2741, allocations: 338.3 kB / 0.9607 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.2741, allocations: 21.38 kB / 0.9608 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.2742, allocations: 36.36 kB / 0.9608 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009174/0.2751, allocations: 0.5279 MB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2752, allocations: 4 kB / 0.9613 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.572e-05/0.2752, allocations: 15.98 kB / 0.9613 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-05/0.2753, allocations: 36.62 kB / 0.9614 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000698/0.276, allocations: 386.3 kB / 0.9617 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.2788, allocations: 2.403 MB / 0.9641 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005295/0.2793, allocations: 267.8 kB / 0.9643 GB, free: 9.926 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.2795, allocations: 108.8 kB / 0.9644 GB, free: 9.816 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.2795, allocations: 11.92 kB / 0.9644 GB, free: 9.805 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.2796, allocations: 34.56 kB / 0.9645 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.883e-06/0.2796, allocations: 0 / 0.9645 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002306/0.2819, allocations: 1.138 MB / 0.9656 GB, free: 8.527 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.282, allocations: 51.41 kB / 0.9656 GB, free: 8.465 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.2823, allocations: 300.4 kB / 0.9659 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.2823, allocations: 33.7 kB / 0.966 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.2825, allocations: 231.6 kB / 0.9662 GB, free: 7.891 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.2826, allocations: 86.83 kB / 0.9663 GB, free: 7.805 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.2827, allocations: 65.88 kB / 0.9663 GB, free: 7.734 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2828, allocations: 334.8 kB / 0.9666 GB, free: 7.398 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.283, allocations: 108.6 kB / 0.9667 GB, free: 7.293 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/0.2833, allocations: 195.7 kB / 0.9669 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.2837, allocations: 313.1 kB / 0.9672 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2837, allocations: 4 kB / 0.9672 GB, free: 6.719 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007686/0.2844, allocations: 442.4 kB / 0.9677 GB, free: 6.273 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2845, allocations: 8 kB / 0.9677 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2845, allocations: 352 / 0.9677 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003714/0.2849, allocations: 98.48 kB / 0.9678 GB, free: 6.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.2852, allocations: 67.91 kB / 0.9678 GB, free: 6.094 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.2885, allocations: 4.387 MB / 0.9721 GB, free: 1.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.2888, allocations: 8 kB / 0.9721 GB, free: 1.273 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.2889, allocations: 16 kB / 0.9721 GB, free: 1.258 MB / 0.7481 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.0002292/0.2891, allocations: 189.8 kB / 0.9723 GB, free: 1.066 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.88e-05/0.2892, allocations: 35.56 kB / 0.9723 GB, free: 1.031 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.1e-05/0.2893, allocations: 38.45 kB / 0.9724 GB, free: 0.9922 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.2893, allocations: 7.984 kB / 0.9724 GB, free: 0.9844 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.2893, allocations: 0 / 0.9724 GB, free: 0.9844 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2893, allocations: 0 / 0.9724 GB, free: 0.9844 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.2898, allocations: 397.4 kB / 0.9728 GB, free: 0.5469 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2898, allocations: 0 / 0.9728 GB, free: 0.5469 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.29, allocations: 43.91 kB / 0.9728 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003185/0.2903, allocations: 98.38 kB / 0.9729 GB, free: 408 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.2904, allocations: 4 kB / 0.9729 GB, free: 404 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003189/0.2935, allocations: 4.383 MB / 0.9772 GB, free: 11.59 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2936, allocations: 0 / 0.9772 GB, free: 11.59 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008459/0.2944, allocations: 0.5656 MB / 0.9777 GB, free: 11 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.2946, allocations: 124.7 kB / 0.9779 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.729e-05/0.2946, allocations: 8 kB / 0.9779 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.2949, allocations: 8 kB / 0.9779 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.2949, allocations: 15.97 kB / 0.9779 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.295, allocations: 8 kB / 0.9779 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002262/0.2952, allocations: 215.1 kB / 0.9781 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2952, allocations: 0 / 0.9781 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004882/0.2957, allocations: 103.9 kB / 0.9782 GB, free: 10.51 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.0001357/0.2958, allocations: 107.1 kB / 0.9783 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009446/0.2968, allocations: 0.6174 MB / 0.9789 GB, free: 9.738 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.2968, allocations: 0 / 0.9789 GB, free: 9.738 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005133/0.2973, allocations: 484 kB / 0.9794 GB, free: 9.227 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005551/0.2979, allocations: 76.42 kB / 0.9794 GB, free: 9.152 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.2992, allocations: 0.894 MB / 0.9803 GB, free: 8.23 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.2997, allocations: 0.835 MB / 0.9811 GB, free: 7.363 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.842e-05/0.2998, allocations: 23.44 kB / 0.9812 GB, free: 7.34 MB / 0.7637 GB Notification: Performance of SimCode: time 9.42e-07/0.2998, allocations: 0 / 0.9812 GB, free: 7.34 MB / 0.7637 GB Notification: Performance of Templates: time 0.01135/0.3111, allocations: 8.666 MB / 0.9896 GB, free: 14.69 MB / 0.7794 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