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.008061/0.008061, allocations: 102.3 kB / 15.73 MB, free: 6.039 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.00174/0.00174, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.494/1.494, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.687/2.687, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 75.16 kB / 0.9508 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4011, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.006432/0.4076, allocations: 3.061 MB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003893/0.4115, allocations: 1.913 MB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.4118, allocations: 11.88 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.4131, allocations: 278.9 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006866/0.4138, allocations: 195.1 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.4148, allocations: 239.3 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006451/0.4155, allocations: 330.7 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004608/0.4159, allocations: 182.3 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00033/0.4163, allocations: 135.5 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004606/0.4167, allocations: 147.5 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.698e-05/0.4168, allocations: 20 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008877/0.4177, allocations: 407.2 kB / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.4179, allocations: 83.8 kB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.4181, allocations: 127.3 kB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00126/0.4194, allocations: 478.7 kB / 1.095 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4194, allocations: 0 / 1.095 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.779e-06/0.4194, allocations: 4 kB / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.3e-05/0.4194, allocations: 3.938 kB / 1.095 GB, free: 9.926 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.00143/0.4209, allocations: 0.5575 MB / 1.096 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.4209, allocations: 12.03 kB / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.422, allocations: 116.5 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005069/0.4225, allocations: 259.9 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.4225, allocations: 12.81 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.4226, allocations: 20.36 kB / 1.096 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005965/0.4232, allocations: 353.5 kB / 1.097 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.4232, allocations: 4 kB / 1.097 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.4233, allocations: 11.98 kB / 1.097 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.031e-05/0.4233, allocations: 24.42 kB / 1.097 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005126/0.4238, allocations: 297.5 kB / 1.097 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.4264, allocations: 1.733 MB / 1.099 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.427, allocations: 322.1 kB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.4272, allocations: 101.8 kB / 1.099 GB, free: 5.812 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001482/0.4273, allocations: 105 kB / 1.099 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.4274, allocations: 30.56 kB / 1.099 GB, free: 5.652 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.354e-06/0.4274, allocations: 0 / 1.099 GB, free: 5.652 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.002773/0.4302, allocations: 0.9643 MB / 1.1 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.4303, allocations: 85.05 kB / 1.1 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.4305, allocations: 219.6 kB / 1.1 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.4306, allocations: 33.64 kB / 1.1 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.4308, allocations: 168.1 kB / 1.101 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.409e-05/0.4309, allocations: 82.89 kB / 1.101 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.431, allocations: 57.7 kB / 1.101 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4312, allocations: 334.8 kB / 1.101 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.4314, allocations: 131.9 kB / 1.101 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.4317, allocations: 209.3 kB / 1.101 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005151/0.4322, allocations: 365.8 kB / 1.102 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.4322, allocations: 8 kB / 1.102 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001087/0.4333, allocations: 0.5055 MB / 1.102 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.4334, allocations: 8 kB / 1.102 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4334, allocations: 4 kB / 1.102 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.434, allocations: 151.3 kB / 1.102 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.4343, allocations: 59.91 kB / 1.102 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003674/0.4379, allocations: 4.19 MB / 1.106 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.4382, allocations: 19.98 kB / 1.106 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.4382, allocations: 16.16 kB / 1.107 GB, free: 13.56 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.0002112/0.4385, allocations: 172.9 kB / 1.107 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.855e-05/0.4386, allocations: 27.66 kB / 1.107 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009531/0.4395, allocations: 466.6 kB / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.4395, allocations: 4 kB / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4396, allocations: 3.984 kB / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.4396, allocations: 0 / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.4414, allocations: 0.9959 MB / 1.108 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.4414, allocations: 4 kB / 1.108 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.4417, allocations: 36.22 kB / 1.108 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004052/0.4421, allocations: 147.2 kB / 1.108 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.4421, allocations: 8 kB / 1.108 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00368/0.4458, allocations: 4.147 MB / 1.112 GB, free: 7.102 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.4458, allocations: 15.89 kB / 1.112 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009917/0.4468, allocations: 0.6154 MB / 1.113 GB, free: 6.418 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.447, allocations: 120.9 kB / 1.113 GB, free: 6.281 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.55e-05/0.4471, allocations: 19.84 kB / 1.113 GB, free: 6.262 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.4473, allocations: 23.97 kB / 1.113 GB, free: 6.238 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.54e-05/0.4474, allocations: 23.91 kB / 1.113 GB, free: 6.215 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.4474, allocations: 16 kB / 1.113 GB, free: 6.199 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001647/0.4476, allocations: 165.5 kB / 1.113 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4476, allocations: 0 / 1.113 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005767/0.4482, allocations: 87.98 kB / 1.113 GB, free: 5.953 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.0002675/0.4485, allocations: 135.2 kB / 1.114 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.4495, allocations: 0.5902 MB / 1.114 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4495, allocations: 0 / 1.114 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006043/0.4502, allocations: 398.2 kB / 1.115 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005616/0.4507, allocations: 47.77 kB / 1.115 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.4519, allocations: 0.6257 MB / 1.115 GB, free: 4.066 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.4524, allocations: 0.7792 MB / 1.116 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001737/0.4526, allocations: 58.23 kB / 1.116 GB, free: 3.207 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.027e-05/0.4526, allocations: 23.44 kB / 1.116 GB, free: 3.188 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.4526, allocations: 0 / 1.116 GB, free: 3.188 MB / 0.8731 GB Notification: Performance of Templates: time 0.00955/0.4622, allocations: 4.215 MB / 1.12 GB, free: 14.99 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/jenkins/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