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.00782/0.00782, allocations: 102.8 kB / 15.73 MB, free: 6.004 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.001239/0.001239, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.4/2.4, allocations: 390.2 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.91 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.224/1.226, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.006039/1.232, allocations: 3.083 MB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00353/1.235, allocations: 1.902 MB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/1.235, allocations: 4.656 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001012/1.237, allocations: 283.3 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005049/1.237, allocations: 192.8 kB / 1.093 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007618/1.238, allocations: 242.5 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006077/1.238, allocations: 332.9 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005069/1.239, allocations: 179.2 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/1.239, allocations: 137.1 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/1.24, allocations: 148.7 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.664e-05/1.24, allocations: 20.12 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/1.241, allocations: 406 kB / 1.095 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001806/1.241, allocations: 84.08 kB / 1.095 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002277/1.241, allocations: 123.2 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001336/1.242, allocations: 485.3 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/1.243, allocations: 1.125 kB / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.986e-06/1.243, allocations: 0 / 1.095 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.2e-05/1.243, allocations: 0 / 1.095 GB, free: 0.9961 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.001387/1.244, allocations: 0.5615 MB / 1.096 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.155e-05/1.244, allocations: 10.45 kB / 1.096 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001055/1.245, allocations: 110 kB / 1.096 GB, free: 492 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004883/1.246, allocations: 266.5 kB / 1.096 GB, free: 244 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/1.246, allocations: 12.03 kB / 1.096 GB, free: 240 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-05/1.246, allocations: 25.05 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008533/1.247, allocations: 355.6 kB / 1.097 GB, free: 40 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/1.247, allocations: 4.469 kB / 1.097 GB, free: 36 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.274e-05/1.247, allocations: 14.94 kB / 1.097 GB, free: 24 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-05/1.247, allocations: 22.25 kB / 1.097 GB, free: 24 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/1.247, allocations: 294.9 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003455/1.251, allocations: 1.738 MB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006618/1.252, allocations: 326.3 kB / 1.099 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/1.252, allocations: 105.2 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001461/1.252, allocations: 94.25 kB / 1.099 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001078/1.252, allocations: 32.91 kB / 1.099 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 2.164e-06/1.252, allocations: 0 / 1.099 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.00319/1.255, allocations: 0.9738 MB / 1.1 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/1.255, allocations: 84.48 kB / 1.1 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/1.256, allocations: 211.5 kB / 1.1 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/1.256, allocations: 30.92 kB / 1.1 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/1.256, allocations: 171.4 kB / 1.101 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/1.256, allocations: 84.45 kB / 1.101 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/1.256, allocations: 60.38 kB / 1.101 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002145/1.256, allocations: 329.9 kB / 1.101 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/1.257, allocations: 131.4 kB / 1.101 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/1.257, allocations: 211 kB / 1.101 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005383/1.257, allocations: 365.5 kB / 1.102 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/1.257, allocations: 1.734 kB / 1.102 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009854/1.258, allocations: 0.5069 MB / 1.102 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/1.258, allocations: 5.906 kB / 1.102 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/1.258, allocations: 7.672 kB / 1.102 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005726/1.259, allocations: 158 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003174/1.259, allocations: 61.16 kB / 1.102 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004182/1.264, allocations: 4.184 MB / 1.106 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/1.264, allocations: 18.89 kB / 1.106 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/1.264, allocations: 15.19 kB / 1.107 GB, free: 8.016 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.0002227/1.264, allocations: 160.6 kB / 1.107 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.884e-05/1.264, allocations: 27.33 kB / 1.107 GB, free: 7.859 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009352/1.265, allocations: 474.6 kB / 1.107 GB, free: 7.637 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/1.265, allocations: 3.625 kB / 1.107 GB, free: 7.637 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.265, allocations: 1.031 kB / 1.107 GB, free: 7.637 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/1.265, allocations: 7.281 kB / 1.107 GB, free: 7.633 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/1.267, allocations: 1.002 MB / 1.108 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001719/1.267, allocations: 6.219 kB / 1.108 GB, free: 6.988 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/1.267, allocations: 35.77 kB / 1.108 GB, free: 6.984 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004183/1.268, allocations: 141.5 kB / 1.108 GB, free: 6.922 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/1.268, allocations: 13.36 kB / 1.108 GB, free: 6.914 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003971/1.272, allocations: 4.15 MB / 1.112 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.803e-05/1.272, allocations: 7.094 kB / 1.112 GB, free: 2.91 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/1.273, allocations: 0.6216 MB / 1.113 GB, free: 2.465 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/1.273, allocations: 121.8 kB / 1.113 GB, free: 2.352 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/1.273, allocations: 9.625 kB / 1.113 GB, free: 2.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/1.274, allocations: 18.66 kB / 1.113 GB, free: 2.344 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/1.274, allocations: 29.58 kB / 1.113 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/1.274, allocations: 12.22 kB / 1.113 GB, free: 2.328 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001747/1.274, allocations: 153.2 kB / 1.113 GB, free: 2.234 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.2e-07/1.274, allocations: 0 / 1.113 GB, free: 2.234 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006284/1.274, allocations: 91.14 kB / 1.113 GB, free: 2.219 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.0003355/1.275, allocations: 140.1 kB / 1.114 GB, free: 2.109 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001166/1.276, allocations: 0.5877 MB / 1.114 GB, free: 1.758 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.276, allocations: 4.562 kB / 1.114 GB, free: 1.754 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006749/1.277, allocations: 397.6 kB / 1.114 GB, free: 1.477 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/1.277, allocations: 37.58 kB / 1.115 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/1.278, allocations: 0.6353 MB / 1.115 GB, free: 1.051 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005991/1.279, allocations: 0.7751 MB / 1.116 GB, free: 356 kB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001886/1.279, allocations: 57.2 kB / 1.116 GB, free: 352 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.575e-05/1.279, allocations: 28.8 kB / 1.116 GB, free: 336 kB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/1.279, allocations: 0 / 1.116 GB, free: 336 kB / 0.8731 GB Notification: Performance of Templates: time 0.01097/1.29, allocations: 4.275 MB / 1.12 GB, free: 15.98 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