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.001167/0.001167, allocations: 102.7 kB / 16.27 MB, free: 6.414 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.001177/0.001177, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.185/2.185, allocations: 390.3 MB / 0.6653 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 64.33 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2364, allocations: 140.4 MB / 0.9503 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006217/0.2426, allocations: 4.352 MB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003033/0.2457, allocations: 1.862 MB / 0.9563 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.246, allocations: 11.94 kB / 0.9564 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.2477, allocations: 0.5993 MB / 0.9569 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000701/0.2485, allocations: 258.6 kB / 0.9572 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.2492, allocations: 251.4 kB / 0.9574 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006565/0.2498, allocations: 0.6112 MB / 0.958 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006912/0.2505, allocations: 467 kB / 0.9585 GB, free: 460 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.2508, allocations: 247.2 kB / 0.9587 GB, free: 212 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000415/0.2512, allocations: 275 kB / 0.959 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 6.113e-05/0.2513, allocations: 36 kB / 0.959 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005037/0.2518, allocations: 255.4 kB / 0.9592 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.252, allocations: 147.6 kB / 0.9594 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.2522, allocations: 218.9 kB / 0.9596 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007331/0.2529, allocations: 0.6075 MB / 0.9602 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.253, allocations: 0 / 0.9602 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.984e-06/0.253, allocations: 3.938 kB / 0.9602 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.388e-06/0.253, allocations: 0 / 0.9602 GB, free: 14.68 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.001224/0.2542, allocations: 0.7135 MB / 0.9609 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001111/0.2543, allocations: 12.03 kB / 0.9609 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009395/0.2553, allocations: 148.3 kB / 0.961 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004313/0.2557, allocations: 334.4 kB / 0.9614 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.2557, allocations: 25.31 kB / 0.9614 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.299e-05/0.2558, allocations: 36.38 kB / 0.9614 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007986/0.2566, allocations: 0.5356 MB / 0.9619 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.2567, allocations: 0 / 0.9619 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.384e-05/0.2567, allocations: 12 kB / 0.9619 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.342e-05/0.2568, allocations: 36.62 kB / 0.962 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005609/0.2573, allocations: 386.3 kB / 0.9624 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.2598, allocations: 2.403 MB / 0.9647 GB, free: 9.703 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.2603, allocations: 267.8 kB / 0.965 GB, free: 9.434 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.2604, allocations: 112.8 kB / 0.9651 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.2605, allocations: 0 / 0.9651 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.2605, allocations: 34.56 kB / 0.9651 GB, free: 9.277 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.2605, allocations: 0 / 0.9651 GB, free: 9.277 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002152/0.2627, allocations: 1.126 MB / 0.9662 GB, free: 8.055 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.2627, allocations: 51.41 kB / 0.9662 GB, free: 7.992 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.263, allocations: 304.4 kB / 0.9665 GB, free: 7.688 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.2631, allocations: 37.7 kB / 0.9666 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.2632, allocations: 231.6 kB / 0.9668 GB, free: 7.414 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.546e-05/0.2633, allocations: 78.91 kB / 0.9669 GB, free: 7.336 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.2634, allocations: 61.94 kB / 0.9669 GB, free: 7.27 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2635, allocations: 338.8 kB / 0.9672 GB, free: 6.93 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.2637, allocations: 104.6 kB / 0.9673 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.2639, allocations: 191.7 kB / 0.9675 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003869/0.2643, allocations: 319.5 kB / 0.9678 GB, free: 6.254 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2643, allocations: 3.984 kB / 0.9678 GB, free: 6.25 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007237/0.2651, allocations: 437.7 kB / 0.9683 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.2651, allocations: 8.344 kB / 0.9683 GB, free: 5.801 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.2651, allocations: 4 kB / 0.9683 GB, free: 5.797 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003639/0.2655, allocations: 106.4 kB / 0.9684 GB, free: 5.684 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.2658, allocations: 71.84 kB / 0.9684 GB, free: 5.613 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003307/0.2691, allocations: 4.383 MB / 0.9727 GB, free: 0.8047 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.2693, allocations: 8.031 kB / 0.9727 GB, free: 0.7969 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.2694, allocations: 16 kB / 0.9727 GB, free: 0.7812 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.000193/0.2696, allocations: 189.7 kB / 0.9729 GB, free: 0.5859 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.64e-05/0.2697, allocations: 39.56 kB / 0.973 GB, free: 0.5469 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.989e-05/0.2697, allocations: 38.31 kB / 0.973 GB, free: 0.5078 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2697, allocations: 4 kB / 0.973 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.2698, allocations: 0 / 0.973 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2698, allocations: 0 / 0.973 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004531/0.2702, allocations: 397.4 kB / 0.9734 GB, free: 68 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2702, allocations: 0 / 0.9734 GB, free: 68 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.2704, allocations: 43.92 kB / 0.9734 GB, free: 24 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/0.2708, allocations: 98.45 kB / 0.9735 GB, free: 15.92 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.2708, allocations: 8 kB / 0.9735 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003141/0.274, allocations: 4.375 MB / 0.9778 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.274, allocations: 0 / 0.9778 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008601/0.2748, allocations: 0.5627 MB / 0.9783 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.275, allocations: 128.7 kB / 0.9785 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.2751, allocations: 8 kB / 0.9785 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.2753, allocations: 8 kB / 0.9785 GB, free: 10.37 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.2753, allocations: 15.97 kB / 0.9785 GB, free: 10.36 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.2754, allocations: 16.06 kB / 0.9785 GB, free: 10.34 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002301/0.2756, allocations: 207.1 kB / 0.9787 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2756, allocations: 0 / 0.9787 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004802/0.2761, allocations: 103.9 kB / 0.9788 GB, free: 10.04 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.0001371/0.2762, allocations: 99.25 kB / 0.9789 GB, free: 9.926 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.000937/0.2772, allocations: 0.625 MB / 0.9795 GB, free: 9.262 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.2772, allocations: 0 / 0.9795 GB, free: 9.262 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.2777, allocations: 484.4 kB / 0.98 GB, free: 8.75 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.2783, allocations: 79.5 kB / 0.9801 GB, free: 8.68 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.2796, allocations: 0.7688 MB / 0.9808 GB, free: 7.883 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.2801, allocations: 0.8311 MB / 0.9816 GB, free: 7.02 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.879e-05/0.2802, allocations: 23.44 kB / 0.9816 GB, free: 6.996 MB / 0.7637 GB Notification: Performance of SimCode: time 3.71e-07/0.2802, allocations: 0 / 0.9816 GB, free: 6.996 MB / 0.7637 GB Notification: Performance of Templates: time 0.0117/0.2919, allocations: 8.657 MB / 0.9901 GB, free: 14.35 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