Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 216 kB / 22.25 MB, free: 5.129 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.331/3.331, allocations: 0.4899 GB / 0.795 GB, free: 33.36 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo)
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo)
Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo)
Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo)
Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad")
translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") [Timeout 300]
"Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 68.2 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3681, allocations: 176.1 MB / 1.326 GB, free: 1.504 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005611/0.3737, allocations: 3.198 MB / 1.329 GB, free: 14.29 MB / 1.029 GB
Notification: Performance of NFInst.instExpressions: time 0.003481/0.3772, allocations: 2.049 MB / 1.331 GB, free: 12.23 MB / 1.029 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.3774, allocations: 7.938 kB / 1.331 GB, free: 12.23 MB / 1.029 GB
Notification: Performance of NFTyping.typeComponents: time 0.001027/0.3784, allocations: 286.9 kB / 1.332 GB, free: 11.95 MB / 1.029 GB
Notification: Performance of NFTyping.typeBindings: time 0.0005186/0.3789, allocations: 199.1 kB / 1.332 GB, free: 11.75 MB / 1.029 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007137/0.3796, allocations: 258.9 kB / 1.332 GB, free: 11.5 MB / 1.029 GB
Notification: Performance of NFFlatten.flatten: time 0.0004695/0.3801, allocations: 322.9 kB / 1.332 GB, free: 11.18 MB / 1.029 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003767/0.3805, allocations: 150.9 kB / 1.333 GB, free: 11.03 MB / 1.029 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.3808, allocations: 135.5 kB / 1.333 GB, free: 10.89 MB / 1.029 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.3811, allocations: 167.4 kB / 1.333 GB, free: 10.73 MB / 1.029 GB
Notification: Performance of NFPackage.collectConstants: time 4.468e-05/0.3812, allocations: 20 kB / 1.333 GB, free: 10.71 MB / 1.029 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007611/0.3819, allocations: 427.2 kB / 1.333 GB, free: 10.29 MB / 1.029 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.382, allocations: 83.73 kB / 1.333 GB, free: 10.21 MB / 1.029 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.3822, allocations: 123.4 kB / 1.333 GB, free: 10.09 MB / 1.029 GB
Notification: Performance of NFConvertDAE.convert: time 0.0008164/0.383, allocations: 498.3 kB / 1.334 GB, free: 9.602 MB / 1.029 GB
Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.383, allocations: 3.938 kB / 1.334 GB, free: 9.598 MB / 1.029 GB
Notification: Performance of FrontEnd: time 1.502e-06/0.383, allocations: 0 / 1.334 GB, free: 9.598 MB / 1.029 GB
Notification: Performance of Transformations before backend: time 6.573e-06/0.383, allocations: 0 / 1.334 GB, free: 9.598 MB / 1.029 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.0009372/0.384, allocations: 0.4971 MB / 1.334 GB, free: 9.07 MB / 1.029 GB
Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.384, allocations: 12.03 kB / 1.334 GB, free: 9.059 MB / 1.029 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000833/0.3848, allocations: 112.7 kB / 1.335 GB, free: 8.949 MB / 1.029 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.3852, allocations: 206.1 kB / 1.335 GB, free: 8.723 MB / 1.029 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.3852, allocations: 16.81 kB / 1.335 GB, free: 8.707 MB / 1.029 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.147e-05/0.3853, allocations: 20.38 kB / 1.335 GB, free: 8.688 MB / 1.029 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.3858, allocations: 360.9 kB / 1.335 GB, free: 8.312 MB / 1.029 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.3858, allocations: 0 / 1.335 GB, free: 8.312 MB / 1.029 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.3859, allocations: 4 kB / 1.335 GB, free: 8.309 MB / 1.029 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-05/0.3859, allocations: 28.42 kB / 1.335 GB, free: 8.281 MB / 1.029 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.3864, allocations: 293.5 kB / 1.335 GB, free: 7.996 MB / 1.029 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002321/0.3887, allocations: 1.631 MB / 1.337 GB, free: 6.223 MB / 1.029 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004871/0.3892, allocations: 241 kB / 1.337 GB, free: 5.969 MB / 1.029 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.3894, allocations: 105.7 kB / 1.337 GB, free: 5.859 MB / 1.029 GB
Notification: Performance of preOpt evalFunc (simulation): time 8.062e-05/0.3895, allocations: 15.92 kB / 1.337 GB, free: 5.844 MB / 1.029 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.3895, allocations: 34.56 kB / 1.337 GB, free: 5.801 MB / 1.029 GB
Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.3895, allocations: 0 / 1.337 GB, free: 5.801 MB / 1.029 GB
Notification: Performance of matching and sorting (n=23): time 0.002564/0.3921, allocations: 0.8973 MB / 1.338 GB, free: 4.887 MB / 1.029 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.3921, allocations: 85.05 kB / 1.338 GB, free: 4.785 MB / 1.029 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.3924, allocations: 215.7 kB / 1.339 GB, free: 4.562 MB / 1.029 GB
Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.3924, allocations: 29.7 kB / 1.339 GB, free: 4.527 MB / 1.029 GB
Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.3925, allocations: 180.4 kB / 1.339 GB, free: 4.344 MB / 1.029 GB
Notification: Performance of collectInitialBindings (initialization): time 7.538e-05/0.3926, allocations: 79.36 kB / 1.339 GB, free: 4.266 MB / 1.029 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3927, allocations: 61.66 kB / 1.339 GB, free: 4.199 MB / 1.029 GB
Notification: Performance of setup shared object (initialization): time 0.0001563/0.3929, allocations: 334.8 kB / 1.339 GB, free: 3.863 MB / 1.029 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.3931, allocations: 131.9 kB / 1.339 GB, free: 3.734 MB / 1.029 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.3934, allocations: 217.2 kB / 1.34 GB, free: 3.488 MB / 1.029 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.3939, allocations: 367.6 kB / 1.34 GB, free: 3.098 MB / 1.029 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3939, allocations: 0 / 1.34 GB, free: 3.098 MB / 1.029 GB
Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009329/0.3948, allocations: 0.5029 MB / 1.34 GB, free: 2.578 MB / 1.029 GB
Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3948, allocations: 4 kB / 1.34 GB, free: 2.574 MB / 1.029 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3949, allocations: 4 kB / 1.34 GB, free: 2.57 MB / 1.029 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005549/0.3954, allocations: 155.4 kB / 1.341 GB, free: 2.406 MB / 1.029 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.3957, allocations: 59.91 kB / 1.341 GB, free: 2.348 MB / 1.029 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003529/0.3992, allocations: 3.983 MB / 1.345 GB, free: 14.08 MB / 1.045 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.3994, allocations: 23.97 kB / 1.345 GB, free: 14.06 MB / 1.045 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.3995, allocations: 12 kB / 1.345 GB, free: 14.05 MB / 1.045 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.0002168/0.3997, allocations: 170.2 kB / 1.345 GB, free: 13.87 MB / 1.045 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.452e-05/0.3998, allocations: 23.86 kB / 1.345 GB, free: 13.85 MB / 1.045 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009444/0.4007, allocations: 472.6 kB / 1.345 GB, free: 13.37 MB / 1.045 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.423e-06/0.4007, allocations: 8 kB / 1.345 GB, free: 13.36 MB / 1.045 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.4007, allocations: 96 / 1.345 GB, free: 13.36 MB / 1.045 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.4007, allocations: 7.922 kB / 1.345 GB, free: 13.36 MB / 1.045 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.4024, allocations: 0.9716 MB / 1.346 GB, free: 12.3 MB / 1.045 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4024, allocations: 0 / 1.346 GB, free: 12.3 MB / 1.045 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.4026, allocations: 39.91 kB / 1.346 GB, free: 12.26 MB / 1.045 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004303/0.403, allocations: 143.2 kB / 1.346 GB, free: 12.11 MB / 1.045 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.403, allocations: 12.25 kB / 1.346 GB, free: 12.09 MB / 1.045 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003313/0.4063, allocations: 3.945 MB / 1.35 GB, free: 7.867 MB / 1.045 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.4064, allocations: 4.031 kB / 1.35 GB, free: 7.863 MB / 1.045 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009466/0.4073, allocations: 0.6257 MB / 1.351 GB, free: 7.184 MB / 1.045 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.4074, allocations: 47.88 kB / 1.351 GB, free: 7.137 MB / 1.045 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.953e-05/0.4075, allocations: 15.92 kB / 1.351 GB, free: 7.121 MB / 1.045 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.4077, allocations: 11.98 kB / 1.351 GB, free: 7.109 MB / 1.045 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.094e-05/0.4078, allocations: 31.91 kB / 1.351 GB, free: 7.078 MB / 1.045 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.4078, allocations: 15.98 kB / 1.351 GB, free: 7.062 MB / 1.045 GB
Notification: Performance of sorting global known variables: time 0.0001636/0.4079, allocations: 153.5 kB / 1.351 GB, free: 6.914 MB / 1.045 GB
Notification: Performance of sort global known variables: time 8e-08/0.4079, allocations: 0 / 1.351 GB, free: 6.914 MB / 1.045 GB
Notification: Performance of remove unused functions: time 0.0005614/0.4085, allocations: 95.86 kB / 1.351 GB, free: 6.82 MB / 1.045 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.0002254/0.4087, allocations: 139.1 kB / 1.351 GB, free: 6.672 MB / 1.045 GB
Notification: Performance of simCode: created initialization part: time 0.001013/0.4097, allocations: 0.5626 MB / 1.352 GB, free: 6.086 MB / 1.045 GB
Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4097, allocations: 0.625 kB / 1.352 GB, free: 6.086 MB / 1.045 GB
Notification: Performance of simCode: created simulation system equations: time 0.0005626/0.4103, allocations: 402.3 kB / 1.352 GB, free: 5.668 MB / 1.045 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005401/0.4108, allocations: 45.97 kB / 1.352 GB, free: 5.625 MB / 1.045 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.412, allocations: 0.6372 MB / 1.353 GB, free: 4.941 MB / 1.045 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/0.4125, allocations: 0.7792 MB / 1.354 GB, free: 4.137 MB / 1.045 GB
Notification: Performance of simCode: alias equations: time 0.0001697/0.4127, allocations: 58.25 kB / 1.354 GB, free: 4.078 MB / 1.045 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.4127, allocations: 23.44 kB / 1.354 GB, free: 4.055 MB / 1.045 GB
Notification: Performance of SimCode: time 3.31e-07/0.4127, allocations: 0 / 1.354 GB, free: 4.055 MB / 1.045 GB
Notification: Performance of Templates: time 0.01017/0.4229, allocations: 4.55 MB / 1.358 GB, free: 15.53 MB / 1.061 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.305914210155606]