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.001409/0.001409, allocations: 105.2 kB / 16.41 MB, free: 6.512 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.001534/0.001534, allocations: 187 kB / 17.34 MB, free: 5.742 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.16 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.268/2.268, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 63.89 kB / 0.9515 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.092/1.093, allocations: 140.4 MB / 1.089 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004865/1.098, allocations: 3.079 MB / 1.092 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003344/1.102, allocations: 1.902 MB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/1.102, allocations: 7.938 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001048/1.103, allocations: 280.4 kB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005756/1.104, allocations: 198.2 kB / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008093/1.104, allocations: 249.2 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004367/1.105, allocations: 329.6 kB / 1.094 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003775/1.105, allocations: 187.7 kB / 1.095 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/1.105, allocations: 129 kB / 1.095 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003216/1.106, allocations: 148 kB / 1.095 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.231e-05/1.106, allocations: 20.12 kB / 1.095 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007561/1.107, allocations: 406.5 kB / 1.095 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001376/1.107, allocations: 88.2 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001419/1.107, allocations: 119.1 kB / 1.096 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008428/1.108, allocations: 492.8 kB / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/1.108, allocations: 0.7812 kB / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/1.108, allocations: 0.7969 kB / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.406e-06/1.108, allocations: 0.5625 kB / 1.096 GB, free: 1.016 MB / 0.8575 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.0009501/1.109, allocations: 0.5548 MB / 1.097 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/1.109, allocations: 13.56 kB / 1.097 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008892/1.11, allocations: 108.6 kB / 1.097 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/1.11, allocations: 265 kB / 1.097 GB, free: 268 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/1.11, allocations: 21.39 kB / 1.097 GB, free: 256 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/1.11, allocations: 16.59 kB / 1.097 GB, free: 252 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005836/1.111, allocations: 355.9 kB / 1.097 GB, free: 64 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/1.111, allocations: 3.938 kB / 1.097 GB, free: 60 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/1.111, allocations: 11.42 kB / 1.097 GB, free: 52 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.547e-05/1.111, allocations: 25.69 kB / 1.097 GB, free: 48 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000658/1.112, allocations: 290.3 kB / 1.098 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002552/1.114, allocations: 1.735 MB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/1.115, allocations: 322.2 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/1.115, allocations: 101.5 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/1.115, allocations: 98.05 kB / 1.1 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.178e-05/1.115, allocations: 41.88 kB / 1.1 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 1.694e-06/1.115, allocations: 0 / 1.1 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002633/1.118, allocations: 0.9647 MB / 1.101 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/1.118, allocations: 85.14 kB / 1.101 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/1.118, allocations: 219.1 kB / 1.101 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001308/1.118, allocations: 26.95 kB / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/1.118, allocations: 170.8 kB / 1.101 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.379e-05/1.118, allocations: 84.88 kB / 1.101 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/1.118, allocations: 59.72 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001658/1.119, allocations: 333.9 kB / 1.102 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002321/1.119, allocations: 132.1 kB / 1.102 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/1.119, allocations: 202 kB / 1.102 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005068/1.12, allocations: 368.4 kB / 1.102 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.12, allocations: 0.8125 kB / 1.102 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009448/1.121, allocations: 0.5126 MB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/1.121, allocations: 4.781 kB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/1.121, allocations: 4.125 kB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005437/1.121, allocations: 149.2 kB / 1.103 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/1.122, allocations: 57.39 kB / 1.103 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004076/1.126, allocations: 4.193 MB / 1.107 GB, free: 8.055 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/1.126, allocations: 17.47 kB / 1.107 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/1.126, allocations: 19.66 kB / 1.107 GB, free: 8.043 MB / 0.8731 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.0002229/1.126, allocations: 162 kB / 1.107 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.001e-05/1.126, allocations: 21.25 kB / 1.107 GB, free: 7.891 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/1.127, allocations: 479.8 kB / 1.108 GB, free: 7.664 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/1.127, allocations: 3.469 kB / 1.108 GB, free: 7.664 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/1.127, allocations: 1.312 kB / 1.108 GB, free: 7.664 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/1.127, allocations: 5.344 kB / 1.108 GB, free: 7.66 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/1.129, allocations: 0.9969 MB / 1.109 GB, free: 7.023 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/1.129, allocations: 7 kB / 1.109 GB, free: 7.02 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/1.13, allocations: 46.28 kB / 1.109 GB, free: 7.004 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004964/1.13, allocations: 139.1 kB / 1.109 GB, free: 6.945 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/1.13, allocations: 8.219 kB / 1.109 GB, free: 6.941 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003646/1.134, allocations: 4.155 MB / 1.113 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.134, allocations: 3.156 kB / 1.113 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009819/1.135, allocations: 0.6329 MB / 1.114 GB, free: 2.484 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/1.135, allocations: 118.4 kB / 1.114 GB, free: 2.375 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/1.135, allocations: 12.64 kB / 1.114 GB, free: 2.367 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/1.135, allocations: 18.72 kB / 1.114 GB, free: 2.363 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/1.135, allocations: 21.3 kB / 1.114 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/1.135, allocations: 8.938 kB / 1.114 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001669/1.135, allocations: 159.6 kB / 1.114 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.884e-06/1.135, allocations: 1.062 kB / 1.114 GB, free: 2.258 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005639/1.136, allocations: 95.11 kB / 1.114 GB, free: 2.238 MB / 0.8731 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.0002972/1.136, allocations: 129.7 kB / 1.114 GB, free: 2.141 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001032/1.137, allocations: 0.5877 MB / 1.115 GB, free: 1.789 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.137, allocations: 3.938 kB / 1.115 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005364/1.138, allocations: 402.2 kB / 1.115 GB, free: 1.504 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/1.138, allocations: 44.12 kB / 1.115 GB, free: 1.488 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/1.14, allocations: 0.6583 MB / 1.116 GB, free: 1.051 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/1.14, allocations: 0.784 MB / 1.117 GB, free: 348 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.763e-05/1.14, allocations: 27.03 kB / 1.117 GB, free: 336 kB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/1.14, allocations: 0 / 1.117 GB, free: 336 kB / 0.8731 GB Notification: Performance of Templates: time 0.01243/1.153, allocations: 7.642 MB / 1.124 GB, free: 15.7 MB / 0.8887 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