Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00167/0.00167, allocations: 106.5 kB / 16.27 MB, free: 6.402 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.001825/0.001825, allocations: 191.2 kB / 17.2 MB, free: 5.938 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.496/1.496, allocations: 222.9 MB / 240.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437.1 MB / 0.711 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 63.77 kB / 0.8699 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3535, allocations: 151.6 MB / 1.018 GB, free: 10.65 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005329/0.3588, allocations: 3.063 MB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003533/0.3624, allocations: 1.921 MB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.3626, allocations: 7.938 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.3636, allocations: 278.9 kB / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005599/0.3642, allocations: 195.1 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006614/0.3649, allocations: 247.7 kB / 1.024 GB, free: 4.922 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000404/0.3653, allocations: 326.9 kB / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003841/0.3657, allocations: 185.2 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.3659, allocations: 131.5 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003017/0.3662, allocations: 147.5 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.3663, allocations: 24 kB / 1.024 GB, free: 4.117 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006738/0.367, allocations: 399.2 kB / 1.025 GB, free: 3.727 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.3671, allocations: 87.73 kB / 1.025 GB, free: 3.641 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.3672, allocations: 119.4 kB / 1.025 GB, free: 3.523 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006709/0.3679, allocations: 486.7 kB / 1.025 GB, free: 3.047 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3679, allocations: 0 / 1.025 GB, free: 3.047 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3679, allocations: 0 / 1.025 GB, free: 3.047 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.368, allocations: 0 / 1.025 GB, free: 3.047 MB / 0.795 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.001297/0.3693, allocations: 0.5613 MB / 1.026 GB, free: 2.434 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3693, allocations: 8.031 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3703, allocations: 116.5 kB / 1.026 GB, free: 2.312 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.3707, allocations: 262.5 kB / 1.026 GB, free: 2.02 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.3708, allocations: 16.81 kB / 1.026 GB, free: 2.004 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.3708, allocations: 32.28 kB / 1.026 GB, free: 1.973 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006154/0.3715, allocations: 353.4 kB / 1.027 GB, free: 1.609 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3715, allocations: 0 / 1.027 GB, free: 1.609 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.3715, allocations: 12 kB / 1.027 GB, free: 1.598 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.823e-05/0.3716, allocations: 24.42 kB / 1.027 GB, free: 1.574 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005053/0.3721, allocations: 293.5 kB / 1.027 GB, free: 1.285 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.3749, allocations: 1.737 MB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000532/0.3755, allocations: 320.5 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.3757, allocations: 105.7 kB / 1.029 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000128/0.3758, allocations: 93.03 kB / 1.029 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.3758, allocations: 34.84 kB / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.273e-06/0.3758, allocations: 0 / 1.029 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002667/0.3785, allocations: 0.9766 MB / 1.03 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.3786, allocations: 81.05 kB / 1.03 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.3789, allocations: 208.8 kB / 1.03 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.3789, allocations: 33.7 kB / 1.03 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.379, allocations: 168.2 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.302e-05/0.3791, allocations: 82.75 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3792, allocations: 65.69 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3794, allocations: 326.8 kB / 1.031 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.3796, allocations: 131.9 kB / 1.031 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/0.3799, allocations: 215 kB / 1.031 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005092/0.3804, allocations: 371.8 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3804, allocations: 0 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000912/0.3813, allocations: 0.5143 MB / 1.032 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.3814, allocations: 8 kB / 1.032 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3814, allocations: 0 / 1.032 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005441/0.3819, allocations: 151.4 kB / 1.032 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.3822, allocations: 63.88 kB / 1.032 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/0.386, allocations: 4.183 MB / 1.037 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.3863, allocations: 19.98 kB / 1.037 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.3863, allocations: 15.98 kB / 1.037 GB, free: 6.688 MB / 0.8106 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.0002125/0.3865, allocations: 165.8 kB / 1.037 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.3866, allocations: 23.72 kB / 1.037 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009206/0.3875, allocations: 486.4 kB / 1.037 GB, free: 6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3875, allocations: 4.094 kB / 1.037 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3875, allocations: 7.938 kB / 1.037 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.3876, allocations: 0 / 1.037 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.3893, allocations: 1.008 MB / 1.038 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.3893, allocations: 4 kB / 1.038 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.3895, allocations: 27.98 kB / 1.038 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000431/0.3899, allocations: 147.5 kB / 1.038 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.39, allocations: 8 kB / 1.038 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003827/0.3938, allocations: 4.17 MB / 1.042 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.3938, allocations: 7.969 kB / 1.042 GB, free: 184 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009625/0.3948, allocations: 0.6431 MB / 1.043 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.3949, allocations: 120.9 kB / 1.043 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.395, allocations: 11.94 kB / 1.043 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.3952, allocations: 15.98 kB / 1.043 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.3953, allocations: 31.91 kB / 1.043 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.3953, allocations: 8 kB / 1.043 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001685/0.3955, allocations: 156.5 kB / 1.043 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3955, allocations: 0 / 1.043 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005471/0.3961, allocations: 91.98 kB / 1.044 GB, free: 15.04 MB / 0.8262 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.0002262/0.3963, allocations: 135.2 kB / 1.044 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001065/0.3974, allocations: 0.5984 MB / 1.044 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3974, allocations: 0.625 kB / 1.044 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006032/0.398, allocations: 397.2 kB / 1.045 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.3986, allocations: 45.67 kB / 1.045 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.3998, allocations: 0.6797 MB / 1.045 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005637/0.4003, allocations: 0.783 MB / 1.046 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.4004, allocations: 23.44 kB / 1.046 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.4004, allocations: 0 / 1.046 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of Templates: time 0.01147/0.4119, allocations: 7.619 MB / 1.054 GB, free: 4.633 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches