Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002102/0.002102, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.555/2.555, allocations: 390.2 MB / 0.6642 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.939/0.9403, allocations: 140.4 MB / 0.9489 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.006869/0.9473, allocations: 3.123 MB / 0.952 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004078/0.9514, allocations: 1.922 MB / 0.9538 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003324/0.9518, allocations: 7.281 kB / 0.9538 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.953, allocations: 264.3 kB / 0.9541 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007929/0.9538, allocations: 182.4 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009615/0.9548, allocations: 217.1 kB / 0.9545 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000718/0.9555, allocations: 448 kB / 0.9549 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005671/0.9561, allocations: 167.2 kB / 0.9551 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004139/0.9565, allocations: 113.1 kB / 0.9552 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005189/0.957, allocations: 155 kB / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.26e-05/0.9571, allocations: 14.53 kB / 0.9553 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.9583, allocations: 476 kB / 0.9558 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.9585, allocations: 80.5 kB / 0.9559 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.9588, allocations: 115.5 kB / 0.956 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.96, allocations: 0.4946 MB / 0.9565 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.96, allocations: 0 / 0.9565 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.585e-06/0.96, allocations: 0 / 0.9565 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.558e-05/0.9601, allocations: 0 / 0.9565 GB, free: 3.543 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001454/0.9615, allocations: 0.5524 MB / 0.957 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.9616, allocations: 9.562 kB / 0.957 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00124/0.9628, allocations: 117.3 kB / 0.9571 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.9633, allocations: 265.3 kB / 0.9574 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.9633, allocations: 20.84 kB / 0.9574 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.979e-05/0.9634, allocations: 20.38 kB / 0.9574 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007549/0.9642, allocations: 351.8 kB / 0.9578 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.9642, allocations: 3.938 kB / 0.9578 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.9642, allocations: 10.75 kB / 0.9578 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.669e-05/0.9643, allocations: 26.3 kB / 0.9578 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007307/0.9651, allocations: 289.5 kB / 0.9581 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.9678, allocations: 1.745 MB / 0.9598 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.9685, allocations: 315.5 kB / 0.9601 GB, free: 436 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.9687, allocations: 113.2 kB / 0.9602 GB, free: 364 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.9688, allocations: 91.28 kB / 0.9603 GB, free: 260 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.9689, allocations: 36.28 kB / 0.9603 GB, free: 216 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 3.046e-06/0.9689, allocations: 0 / 0.9603 GB, free: 216 kB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.003243/0.9721, allocations: 0.9644 MB / 0.9612 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/0.9722, allocations: 87.48 kB / 0.9613 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.9725, allocations: 218.5 kB / 0.9615 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.9726, allocations: 30.89 kB / 0.9616 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.9727, allocations: 165 kB / 0.9617 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.941e-05/0.9728, allocations: 76.94 kB / 0.9618 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.9729, allocations: 67.52 kB / 0.9619 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.9731, allocations: 330.9 kB / 0.9622 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.9733, allocations: 131.6 kB / 0.9623 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002761/0.9736, allocations: 208.9 kB / 0.9625 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005278/0.9741, allocations: 376.1 kB / 0.9629 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.9741, allocations: 1.312 kB / 0.9629 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001083/0.9752, allocations: 0.5065 MB / 0.9634 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.9753, allocations: 7.156 kB / 0.9634 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.9753, allocations: 6.156 kB / 0.9634 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006415/0.9759, allocations: 146.1 kB / 0.9635 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.9762, allocations: 60.59 kB / 0.9636 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003677/0.9799, allocations: 3.97 MB / 0.9674 GB, free: 9.883 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.9802, allocations: 18.02 kB / 0.9675 GB, free: 9.875 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.9803, allocations: 13.59 kB / 0.9675 GB, free: 9.871 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002376/0.9805, allocations: 163.7 kB / 0.9676 GB, free: 9.723 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/0.9806, allocations: 17.62 kB / 0.9676 GB, free: 9.715 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009613/0.9816, allocations: 482.1 kB / 0.9681 GB, free: 9.414 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.9816, allocations: 3 kB / 0.9681 GB, free: 9.414 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.9816, allocations: 1.062 kB / 0.9681 GB, free: 9.414 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.9816, allocations: 5.109 kB / 0.9681 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.9835, allocations: 1.004 MB / 0.9691 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.9835, allocations: 2.812 kB / 0.9691 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.9837, allocations: 37.53 kB / 0.9691 GB, free: 8.613 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005002/0.9842, allocations: 147.3 kB / 0.9693 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.9843, allocations: 12.25 kB / 0.9693 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00309/0.9874, allocations: 3.946 MB / 0.9731 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.9874, allocations: 2.812 kB / 0.9731 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009291/0.9883, allocations: 0.6248 MB / 0.9737 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.9885, allocations: 126.5 kB / 0.9739 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.9886, allocations: 15.92 kB / 0.9739 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.9888, allocations: 22.39 kB / 0.9739 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.767e-05/0.9889, allocations: 21.97 kB / 0.9739 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.9889, allocations: 8.812 kB / 0.9739 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001802/0.9891, allocations: 153.8 kB / 0.9741 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9891, allocations: 0 / 0.9741 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006232/0.9897, allocations: 98.7 kB / 0.9742 GB, free: 3.773 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002535/0.99, allocations: 137.7 kB / 0.9743 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001107/0.9911, allocations: 0.5798 MB / 0.9749 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.9911, allocations: 0 / 0.9749 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005506/0.9917, allocations: 396.7 kB / 0.9753 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005652/0.9923, allocations: 43.05 kB / 0.9753 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.9936, allocations: 0.7238 MB / 0.976 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.994, allocations: 0.7824 MB / 0.9768 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002018/0.9942, allocations: 59.39 kB / 0.9768 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.724e-05/0.9943, allocations: 26.7 kB / 0.9768 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.9943, allocations: 1.125 kB / 0.9768 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of Templates: time 0.01035/1.005, allocations: 4.03 MB / 0.9808 GB, free: 15.61 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches