Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0008861/0.0008862, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006317/0.006317, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.452/1.452, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.834/2.834, allocations: 443.3 MB / 0.7175 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005863/0.0005863, allocations: 8.844 kB / 0.8796 GB, free: 41.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3948, allocations: 155.2 MB / 1.031 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003861/0.3987, allocations: 2.761 MB / 1.034 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002951/0.4017, allocations: 1.902 MB / 1.036 GB, free: 15.65 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.4019, allocations: 7.938 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.4022, allocations: 31.78 kB / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0006752/0.4028, allocations: 187.2 kB / 1.036 GB, free: 15.43 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007742/0.4036, allocations: 210.5 kB / 1.036 GB, free: 15.22 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000605/0.4042, allocations: 450.7 kB / 1.036 GB, free: 14.78 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007948/0.4051, allocations: 329.9 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.4053, allocations: 111.5 kB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004785/0.4058, allocations: 143.5 kB / 1.037 GB, free: 14.18 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.677e-05/0.4059, allocations: 15.94 kB / 1.037 GB, free: 14.17 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.4069, allocations: 475.1 kB / 1.038 GB, free: 13.7 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.4071, allocations: 71.75 kB / 1.038 GB, free: 13.63 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.4073, allocations: 133.1 kB / 1.038 GB, free: 13.5 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0009615/0.4082, allocations: 490.6 kB / 1.038 GB, free: 13.02 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 1.136e-05/0.4082, allocations: 0 / 1.038 GB, free: 13.02 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.505e-06/0.4083, allocations: 3.938 kB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.221e-05/0.4083, allocations: 4 kB / 1.038 GB, free: 13.01 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.001061/0.4094, allocations: 0.5185 MB / 1.039 GB, free: 12.44 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4094, allocations: 8.031 kB / 1.039 GB, free: 12.43 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00094/0.4104, allocations: 116.5 kB / 1.039 GB, free: 12.32 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.4108, allocations: 252 kB / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.4109, allocations: 16.8 kB / 1.039 GB, free: 12.02 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.4109, allocations: 24.38 kB / 1.039 GB, free: 11.99 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/0.4116, allocations: 353.2 kB / 1.039 GB, free: 11.63 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.4116, allocations: 0 / 1.039 GB, free: 11.63 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.4116, allocations: 8 kB / 1.039 GB, free: 11.62 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.103e-05/0.4117, allocations: 24.42 kB / 1.039 GB, free: 11.6 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.4122, allocations: 297.5 kB / 1.04 GB, free: 11.3 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.4146, allocations: 1.745 MB / 1.041 GB, free: 9.395 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.4151, allocations: 322.1 kB / 1.042 GB, free: 9.043 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.4153, allocations: 113.6 kB / 1.042 GB, free: 8.926 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.4154, allocations: 93.09 kB / 1.042 GB, free: 8.816 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.4155, allocations: 34.55 kB / 1.042 GB, free: 8.773 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.4155, allocations: 0 / 1.042 GB, free: 8.773 MB / 0.795 GB Notification: Performance of matching and sorting (n=23): time 0.002678/0.4182, allocations: 0.9665 MB / 1.043 GB, free: 7.77 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.4182, allocations: 81.05 kB / 1.043 GB, free: 7.672 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.4185, allocations: 215.6 kB / 1.043 GB, free: 7.449 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.4186, allocations: 33.7 kB / 1.043 GB, free: 7.41 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.4187, allocations: 172.1 kB / 1.043 GB, free: 7.234 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 7.437e-05/0.4188, allocations: 82.78 kB / 1.043 GB, free: 7.152 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.601e-05/0.4189, allocations: 37.7 kB / 1.044 GB, free: 7.109 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4191, allocations: 326.8 kB / 1.044 GB, free: 6.781 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.4193, allocations: 131.9 kB / 1.044 GB, free: 6.652 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.4196, allocations: 213.3 kB / 1.044 GB, free: 6.41 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/0.4201, allocations: 359.6 kB / 1.045 GB, free: 6.027 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.4201, allocations: 0 / 1.045 GB, free: 6.027 MB / 0.795 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009493/0.4211, allocations: 0.5106 MB / 1.045 GB, free: 5.5 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.4211, allocations: 9.875 kB / 1.045 GB, free: 5.492 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4211, allocations: 96 / 1.045 GB, free: 5.492 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005884/0.4217, allocations: 155.4 kB / 1.045 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.422, allocations: 55.91 kB / 1.045 GB, free: 5.273 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/0.4252, allocations: 3.977 MB / 1.049 GB, free: 0.9766 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.4254, allocations: 23.95 kB / 1.049 GB, free: 0.9531 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-05/0.4255, allocations: 8 kB / 1.049 GB, free: 0.9453 MB / 0.795 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.0002217/0.4257, allocations: 173.8 kB / 1.049 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.52e-05/0.4258, allocations: 23.72 kB / 1.049 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009578/0.4268, allocations: 473.9 kB / 1.05 GB, free: 276 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4268, allocations: 3.984 kB / 1.05 GB, free: 272 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4268, allocations: 4 kB / 1.05 GB, free: 268 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4268, allocations: 0 / 1.05 GB, free: 268 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.4284, allocations: 1.008 MB / 1.051 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4284, allocations: 4.25 kB / 1.051 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.4286, allocations: 39.91 kB / 1.051 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004269/0.429, allocations: 143.3 kB / 1.051 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.429, allocations: 11.94 kB / 1.051 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002897/0.4319, allocations: 3.95 MB / 1.055 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.4319, allocations: 4 kB / 1.055 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008611/0.4328, allocations: 0.6255 MB / 1.055 GB, free: 10 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.433, allocations: 128.8 kB / 1.056 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.433, allocations: 8 kB / 1.056 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.4333, allocations: 19.98 kB / 1.056 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.116e-05/0.4333, allocations: 27.91 kB / 1.056 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.4334, allocations: 8 kB / 1.056 GB, free: 9.797 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001773/0.4336, allocations: 157.5 kB / 1.056 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4336, allocations: 0 / 1.056 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005694/0.4341, allocations: 95.92 kB / 1.056 GB, free: 9.551 MB / 0.8106 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.0002701/0.4344, allocations: 135.1 kB / 1.056 GB, free: 9.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0009826/0.4354, allocations: 0.5831 MB / 1.057 GB, free: 8.801 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4354, allocations: 0 / 1.057 GB, free: 8.801 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.436, allocations: 404.3 kB / 1.057 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005583/0.4365, allocations: 41.7 kB / 1.057 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.4377, allocations: 0.7564 MB / 1.058 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.4381, allocations: 0.7831 MB / 1.058 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001869/0.4383, allocations: 66.17 kB / 1.059 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.432e-05/0.4384, allocations: 19.44 kB / 1.059 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of SimCode: time 4e-07/0.4384, allocations: 0 / 1.059 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of Templates: time 0.00832/0.4467, allocations: 3.949 MB / 1.062 GB, free: 2.715 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches