Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.009612/0.009613, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002019/0.00202, allocations: 194.3 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.515/1.515, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.889/2.889, allocations: 437 MB / 0.7105 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.89 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3923, allocations: 151.6 MB / 1.167 GB, free: 6.809 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.00487/0.3972, allocations: 3.064 MB / 1.17 GB, free: 3.723 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003135/0.4003, allocations: 1.913 MB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.4005, allocations: 4 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009784/0.4015, allocations: 282.9 kB / 1.172 GB, free: 1.516 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004932/0.402, allocations: 195.1 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006832/0.4027, allocations: 247.3 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.4031, allocations: 322.9 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003504/0.4034, allocations: 184.9 kB / 1.173 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.4036, allocations: 131.5 kB / 1.173 GB, free: 460 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002938/0.4039, allocations: 147.4 kB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.404, allocations: 20 kB / 1.173 GB, free: 292 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006084/0.4046, allocations: 411.2 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.4047, allocations: 83.78 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.4049, allocations: 115.4 kB / 1.174 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006468/0.4055, allocations: 494.3 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4055, allocations: 0 / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4055, allocations: 4 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.4056, allocations: 4 kB / 1.174 GB, free: 15.2 MB / 0.9356 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.0009567/0.4065, allocations: 0.5668 MB / 1.175 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4066, allocations: 15.97 kB / 1.175 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007892/0.4074, allocations: 112.6 kB / 1.175 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.4077, allocations: 273.3 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.4078, allocations: 12.81 kB / 1.175 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.4078, allocations: 16.38 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005453/0.4084, allocations: 365.2 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.4084, allocations: 4 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.4084, allocations: 8 kB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.735e-05/0.4085, allocations: 28.42 kB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.4089, allocations: 289.5 kB / 1.176 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.4111, allocations: 1.73 MB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004698/0.4116, allocations: 326.1 kB / 1.178 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.4117, allocations: 101.7 kB / 1.178 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/0.4118, allocations: 93.03 kB / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.4119, allocations: 34.56 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.4119, allocations: 0 / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.002436/0.4143, allocations: 0.9753 MB / 1.179 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.4144, allocations: 85.05 kB / 1.179 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.4146, allocations: 215.8 kB / 1.179 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.4147, allocations: 25.7 kB / 1.179 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.4148, allocations: 180.4 kB / 1.179 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.42e-05/0.4148, allocations: 83.34 kB / 1.179 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.415, allocations: 57.7 kB / 1.179 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4151, allocations: 330.8 kB / 1.18 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000186/0.4153, allocations: 131.9 kB / 1.18 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.4155, allocations: 214.4 kB / 1.18 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/0.416, allocations: 363.2 kB / 1.18 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.416, allocations: 4 kB / 1.18 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008186/0.4168, allocations: 0.5081 MB / 1.181 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.4168, allocations: 10.02 kB / 1.181 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4168, allocations: 4 kB / 1.181 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005125/0.4174, allocations: 159.7 kB / 1.181 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/0.4176, allocations: 59.84 kB / 1.181 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/0.4207, allocations: 4.202 MB / 1.185 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.4209, allocations: 15.98 kB / 1.185 GB, free: 2.812 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.4209, allocations: 15.94 kB / 1.185 GB, free: 2.797 MB / 0.9356 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.0002016/0.4211, allocations: 174.8 kB / 1.185 GB, free: 2.617 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.4212, allocations: 19.86 kB / 1.185 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000816/0.422, allocations: 477 kB / 1.186 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.422, allocations: 8 kB / 1.186 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.4221, allocations: 0 / 1.186 GB, free: 2.109 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4221, allocations: 3.984 kB / 1.186 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.4236, allocations: 0.992 MB / 1.187 GB, free: 1.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.4236, allocations: 4 kB / 1.187 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.4237, allocations: 35.92 kB / 1.187 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003802/0.4241, allocations: 147.5 kB / 1.187 GB, free: 0.8242 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.4241, allocations: 8 kB / 1.187 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.427, allocations: 4.162 MB / 1.191 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.427, allocations: 4.031 kB / 1.191 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007971/0.4278, allocations: 0.6178 MB / 1.192 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.4279, allocations: 120.9 kB / 1.192 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.428, allocations: 11.94 kB / 1.192 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.4282, allocations: 27.97 kB / 1.192 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/0.4283, allocations: 19.92 kB / 1.192 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.4283, allocations: 11.98 kB / 1.192 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001402/0.4284, allocations: 160.2 kB / 1.192 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4285, allocations: 0 / 1.192 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005531/0.429, allocations: 91.88 kB / 1.192 GB, free: 11.19 MB / 0.9512 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.0002423/0.4293, allocations: 143.6 kB / 1.192 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009661/0.4302, allocations: 0.5876 MB / 1.193 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4302, allocations: 0 / 1.193 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004873/0.4307, allocations: 397.1 kB / 1.193 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000515/0.4313, allocations: 56.97 kB / 1.193 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.4323, allocations: 0.6333 MB / 1.194 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.4327, allocations: 0.7792 MB / 1.195 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001576/0.4328, allocations: 58.23 kB / 1.195 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.4329, allocations: 19.44 kB / 1.195 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of SimCode: time 2.91e-07/0.4329, allocations: 0 / 1.195 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of Templates: time 0.008283/0.4412, allocations: 4.217 MB / 1.199 GB, free: 4.215 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches