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.001294/0.001295, allocations: 104.8 kB / 15.98 MB, free: 6.352 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.001281/0.001281, allocations: 193 kB / 16.91 MB, free: 6.184 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.395/1.395, 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.507/2.507, allocations: 390.2 MB / 0.665 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 62.14 kB / 0.8127 GB, free: 32.49 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3691/0.3704, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.007578/0.3781, allocations: 3.132 MB / 0.9528 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004165/0.3823, allocations: 1.89 MB / 0.9547 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.3826, allocations: 11.94 kB / 0.9547 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001269/0.3839, allocations: 263 kB / 0.9549 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0007073/0.3846, allocations: 179.2 kB / 0.9551 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.3855, allocations: 219.5 kB / 0.9553 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.3861, allocations: 323 kB / 0.9556 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005273/0.3866, allocations: 212.9 kB / 0.9558 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.3869, allocations: 135.5 kB / 0.9559 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003665/0.3872, allocations: 159.4 kB / 0.9561 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.3873, allocations: 20 kB / 0.9561 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008404/0.3881, allocations: 399.2 kB / 0.9565 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.3883, allocations: 87.78 kB / 0.9566 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.3885, allocations: 123.3 kB / 0.9567 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006435/0.3891, allocations: 375.2 kB / 0.9571 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3891, allocations: 0 / 0.9571 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3892, allocations: 0 / 0.9571 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.3892, allocations: 0 / 0.9571 GB, free: 1.723 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.001146/0.3903, allocations: 0.5614 MB / 0.9576 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3904, allocations: 12.02 kB / 0.9576 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001207/0.3916, allocations: 108.5 kB / 0.9577 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.392, allocations: 258.2 kB / 0.958 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.3921, allocations: 12.81 kB / 0.958 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.543e-05/0.3921, allocations: 28.3 kB / 0.958 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007515/0.3929, allocations: 345.5 kB / 0.9583 GB, free: 312 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3929, allocations: 0 / 0.9583 GB, free: 312 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.523e-05/0.393, allocations: 15.98 kB / 0.9584 GB, free: 296 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.752e-05/0.393, allocations: 28.34 kB / 0.9584 GB, free: 268 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006617/0.3937, allocations: 293.5 kB / 0.9587 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00292/0.3966, allocations: 1.745 MB / 0.9604 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007208/0.3974, allocations: 326.1 kB / 0.9607 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002377/0.3976, allocations: 105.7 kB / 0.9608 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000156/0.3978, allocations: 89.05 kB / 0.9609 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.3979, allocations: 46.77 kB / 0.9609 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 2.384e-06/0.3979, allocations: 0 / 0.9609 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.003711/0.4016, allocations: 0.962 MB / 0.9618 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.4017, allocations: 89.08 kB / 0.9619 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.402, allocations: 211.7 kB / 0.9621 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.4021, allocations: 29.7 kB / 0.9622 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.4023, allocations: 176.1 kB / 0.9623 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.501e-05/0.4024, allocations: 82.77 kB / 0.9624 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.4025, allocations: 61.61 kB / 0.9625 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.4027, allocations: 334.8 kB / 0.9628 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.403, allocations: 127.9 kB / 0.9629 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003712/0.4034, allocations: 205.4 kB / 0.9631 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007177/0.4041, allocations: 373.5 kB / 0.9635 GB, free: 10.67 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4042, allocations: 4 kB / 0.9635 GB, free: 10.66 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001371/0.4055, allocations: 0.5042 MB / 0.964 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.4056, allocations: 8 kB / 0.964 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4056, allocations: 4.312 kB / 0.964 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000809/0.4064, allocations: 147.3 kB / 0.9641 GB, free: 9.973 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.4068, allocations: 59.91 kB / 0.9642 GB, free: 9.914 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004661/0.4115, allocations: 4.194 MB / 0.9683 GB, free: 5.387 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003523/0.4119, allocations: 19.97 kB / 0.9683 GB, free: 5.367 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/0.412, allocations: 16 kB / 0.9683 GB, free: 5.352 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.0002859/0.4123, allocations: 165.7 kB / 0.9685 GB, free: 5.18 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.4124, allocations: 23.72 kB / 0.9685 GB, free: 5.156 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.4138, allocations: 472 kB / 0.9689 GB, free: 4.676 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.4138, allocations: 4 kB / 0.9689 GB, free: 4.672 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4138, allocations: 0 / 0.9689 GB, free: 4.672 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.4138, allocations: 11.98 kB / 0.9689 GB, free: 4.66 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.4162, allocations: 0.9998 MB / 0.9699 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.4163, allocations: 8 kB / 0.9699 GB, free: 3.559 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.4165, allocations: 35.92 kB / 0.97 GB, free: 3.523 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006334/0.4171, allocations: 143.6 kB / 0.9701 GB, free: 3.371 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.4172, allocations: 8 kB / 0.9701 GB, free: 3.363 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004382/0.4216, allocations: 4.17 MB / 0.9742 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.4216, allocations: 8.016 kB / 0.9742 GB, free: 14.85 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.4229, allocations: 0.6337 MB / 0.9748 GB, free: 14.17 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000239/0.4232, allocations: 128.8 kB / 0.9749 GB, free: 14.02 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.248e-05/0.4233, allocations: 11.94 kB / 0.9749 GB, free: 14.01 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004044/0.4237, allocations: 15.98 kB / 0.975 GB, free: 14 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.418e-05/0.4238, allocations: 23.97 kB / 0.975 GB, free: 13.97 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.14e-05/0.4238, allocations: 8 kB / 0.975 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002457/0.4241, allocations: 157.5 kB / 0.9751 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.2e-07/0.4241, allocations: 4 kB / 0.9751 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009622/0.425, allocations: 88 kB / 0.9752 GB, free: 13.72 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.0003502/0.4254, allocations: 131.2 kB / 0.9753 GB, free: 13.59 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001523/0.4269, allocations: 0.6025 MB / 0.9759 GB, free: 12.96 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.427, allocations: 4 kB / 0.9759 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008118/0.4278, allocations: 398.2 kB / 0.9763 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008971/0.4287, allocations: 47.86 kB / 0.9764 GB, free: 12.49 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.4306, allocations: 0.7786 MB / 0.9771 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005687/0.4311, allocations: 0.7753 MB / 0.9779 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.4313, allocations: 23.44 kB / 0.9779 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of SimCode: time 3.186e-06/0.4313, allocations: 0 / 0.9779 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of Templates: time 0.01493/0.4462, allocations: 7.622 MB / 0.9853 GB, free: 3.211 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