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.001692/0.001692, allocations: 106 kB / 16.27 MB, free: 6.41 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.002047/0.002047, allocations: 190.3 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.475/1.475, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.393/2.393, allocations: 390.3 MB / 0.6653 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 63.73 kB / 0.8132 GB, free: 32.96 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3972, allocations: 140.4 MB / 0.9503 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005172/0.4024, allocations: 3.074 MB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003148/0.4056, allocations: 1.917 MB / 0.9551 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.4058, allocations: 4 kB / 0.9551 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.4069, allocations: 278.9 kB / 0.9554 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005635/0.4074, allocations: 191.1 kB / 0.9556 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000733/0.4082, allocations: 247.2 kB / 0.9558 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.4086, allocations: 322.9 kB / 0.9561 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.409, allocations: 186.8 kB / 0.9563 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.4092, allocations: 139.5 kB / 0.9564 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.4096, allocations: 143.4 kB / 0.9566 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.984e-05/0.4096, allocations: 20 kB / 0.9566 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000708/0.4103, allocations: 407.2 kB / 0.957 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.4105, allocations: 83.78 kB / 0.9571 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.4106, allocations: 123.4 kB / 0.9572 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007147/0.4113, allocations: 482.7 kB / 0.9576 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4114, allocations: 4 kB / 0.9577 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4114, allocations: 8 kB / 0.9577 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.135e-05/0.4114, allocations: 3.938 kB / 0.9577 GB, free: 1.238 MB / 0.7325 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.001069/0.4125, allocations: 0.5458 MB / 0.9582 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4125, allocations: 15.97 kB / 0.9582 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008843/0.4134, allocations: 112.5 kB / 0.9583 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.4138, allocations: 259.9 kB / 0.9586 GB, free: 232 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.4138, allocations: 16.81 kB / 0.9586 GB, free: 216 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.4138, allocations: 20.38 kB / 0.9586 GB, free: 196 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000559/0.4144, allocations: 353.4 kB / 0.9589 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.4144, allocations: 0 / 0.9589 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.4145, allocations: 15.98 kB / 0.959 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/0.4145, allocations: 20.42 kB / 0.959 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.415, allocations: 297.5 kB / 0.9593 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.4175, allocations: 1.737 MB / 0.961 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000541/0.4181, allocations: 318.2 kB / 0.9613 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.4183, allocations: 105.6 kB / 0.9614 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.4184, allocations: 101 kB / 0.9615 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.4185, allocations: 30.84 kB / 0.9615 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.4185, allocations: 0 / 0.9615 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002704/0.4212, allocations: 0.9726 MB / 0.9624 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.4213, allocations: 85.05 kB / 0.9625 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.4215, allocations: 211.7 kB / 0.9627 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.4215, allocations: 29.7 kB / 0.9627 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.4216, allocations: 168.2 kB / 0.9629 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.861e-05/0.4217, allocations: 74.86 kB / 0.963 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.4218, allocations: 65.59 kB / 0.963 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.422, allocations: 330.8 kB / 0.9634 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.4222, allocations: 131.9 kB / 0.9635 GB, free: 10.83 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002467/0.4224, allocations: 205.4 kB / 0.9637 GB, free: 10.6 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.4229, allocations: 380.2 kB / 0.964 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.4229, allocations: 4 kB / 0.964 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008741/0.4238, allocations: 0.5083 MB / 0.9645 GB, free: 9.664 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4239, allocations: 4 kB / 0.9645 GB, free: 9.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4239, allocations: 4 kB / 0.9645 GB, free: 9.656 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005678/0.4244, allocations: 159.3 kB / 0.9647 GB, free: 9.488 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.4247, allocations: 59.91 kB / 0.9648 GB, free: 9.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003387/0.4281, allocations: 4.186 MB / 0.9688 GB, free: 4.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.4283, allocations: 15.98 kB / 0.9689 GB, free: 4.895 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.4284, allocations: 15.98 kB / 0.9689 GB, free: 4.879 MB / 0.7481 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.0002152/0.4286, allocations: 176.2 kB / 0.969 GB, free: 4.699 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.4287, allocations: 19.81 kB / 0.9691 GB, free: 4.68 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008748/0.4296, allocations: 482.4 kB / 0.9695 GB, free: 4.188 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.4296, allocations: 4 kB / 0.9695 GB, free: 4.184 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4296, allocations: 0 / 0.9695 GB, free: 4.184 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4296, allocations: 0 / 0.9695 GB, free: 4.184 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.4312, allocations: 1.01 MB / 0.9705 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4312, allocations: 0 / 0.9705 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.4314, allocations: 39.92 kB / 0.9706 GB, free: 3.043 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004119/0.4318, allocations: 139.6 kB / 0.9707 GB, free: 2.895 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.4318, allocations: 12 kB / 0.9707 GB, free: 2.883 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/0.4349, allocations: 4.171 MB / 0.9748 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.435, allocations: 0 / 0.9748 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008479/0.4358, allocations: 0.6266 MB / 0.9754 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.436, allocations: 120.9 kB / 0.9755 GB, free: 13.56 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.4361, allocations: 19.92 kB / 0.9755 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.4363, allocations: 15.98 kB / 0.9755 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.4364, allocations: 23.91 kB / 0.9756 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.4364, allocations: 16 kB / 0.9756 GB, free: 13.49 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0001635/0.4366, allocations: 153.5 kB / 0.9757 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4366, allocations: 0 / 0.9757 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0005559/0.4371, allocations: 87.98 kB / 0.9758 GB, free: 13.25 MB / 0.7637 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.0002495/0.4374, allocations: 144.2 kB / 0.9759 GB, free: 13.11 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001045/0.4384, allocations: 0.6008 MB / 0.9765 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4385, allocations: 0 / 0.9765 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.439, allocations: 402.4 kB / 0.9769 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.4396, allocations: 45.28 kB / 0.9769 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.4408, allocations: 0.6775 MB / 0.9776 GB, free: 11.29 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.4412, allocations: 0.7753 MB / 0.9784 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.161e-05/0.4413, allocations: 31.38 kB / 0.9784 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of SimCode: time 3.5e-07/0.4413, allocations: 0 / 0.9784 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of Templates: time 0.0109/0.4522, allocations: 7.616 MB / 0.9858 GB, free: 2.84 MB / 0.7637 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/jenkins1/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