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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009989/0.0009989, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 185.2 kB / 16.92 MB, free: 6.684 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.447/1.447, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.751/2.751, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004156/0.0004157, allocations: 11.98 kB / 0.8735 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8469/0.8474, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004383/0.8518, allocations: 2.758 MB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003473/0.8553, allocations: 1.898 MB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.8556, allocations: 4 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.8558, allocations: 35.7 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006784/0.8565, allocations: 183.3 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007366/0.8573, allocations: 215.5 kB / 1.029 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006001/0.8579, allocations: 450.7 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007284/0.8586, allocations: 323.9 kB / 1.029 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.8589, allocations: 107.6 kB / 1.029 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.8593, allocations: 147.4 kB / 1.03 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.058e-05/0.8593, allocations: 8 kB / 1.03 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008626/0.8602, allocations: 471.1 kB / 1.03 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.8603, allocations: 79.72 kB / 1.03 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.8605, allocations: 137.2 kB / 1.03 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005947/0.8611, allocations: 371 kB / 1.031 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.8611, allocations: 0 / 1.031 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8611, allocations: 4 kB / 1.031 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.776e-06/0.8612, allocations: 0 / 1.031 GB, free: 8.68 MB / 0.7794 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.0009673/0.8621, allocations: 0.5185 MB / 1.031 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.8622, allocations: 12.03 kB / 1.031 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009536/0.8631, allocations: 108.5 kB / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.8636, allocations: 267.7 kB / 1.032 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.8637, allocations: 12.81 kB / 1.032 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.96e-05/0.8638, allocations: 20.36 kB / 1.032 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.8644, allocations: 357.2 kB / 1.032 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.8644, allocations: 0 / 1.032 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.8645, allocations: 11.98 kB / 1.032 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.153e-05/0.8645, allocations: 24.42 kB / 1.032 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005843/0.8651, allocations: 293.5 kB / 1.032 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.8677, allocations: 1.741 MB / 1.034 GB, free: 5.062 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.8683, allocations: 326.1 kB / 1.034 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.8685, allocations: 109.6 kB / 1.034 GB, free: 4.594 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.8687, allocations: 89.09 kB / 1.034 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.8687, allocations: 34.56 kB / 1.034 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.8687, allocations: 0 / 1.034 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002823/0.8715, allocations: 0.9681 MB / 1.035 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.8716, allocations: 85.05 kB / 1.035 GB, free: 3.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.8719, allocations: 216.7 kB / 1.036 GB, free: 3.117 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.8719, allocations: 33.7 kB / 1.036 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.8721, allocations: 168.1 kB / 1.036 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.703e-05/0.8722, allocations: 78.84 kB / 1.036 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.8722, allocations: 33.7 kB / 1.036 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.8724, allocations: 326.8 kB / 1.036 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.8726, allocations: 131.9 kB / 1.036 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.8729, allocations: 218.5 kB / 1.037 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005195/0.8734, allocations: 359.2 kB / 1.037 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.8734, allocations: 0 / 1.037 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009574/0.8744, allocations: 0.5151 MB / 1.037 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.8744, allocations: 8 kB / 1.037 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.8745, allocations: 7.938 kB / 1.037 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006234/0.8751, allocations: 151.6 kB / 1.038 GB, free: 1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.8754, allocations: 59.91 kB / 1.038 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/0.8789, allocations: 3.965 MB / 1.042 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.8791, allocations: 20.02 kB / 1.042 GB, free: 12.64 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-05/0.8792, allocations: 12 kB / 1.042 GB, free: 12.62 MB / 0.795 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.0002093/0.8794, allocations: 162.2 kB / 1.042 GB, free: 12.46 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.8795, allocations: 23.72 kB / 1.042 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009439/0.8805, allocations: 482.6 kB / 1.042 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.8805, allocations: 0 / 1.042 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.8805, allocations: 4 kB / 1.042 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.8806, allocations: 4 kB / 1.042 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.8823, allocations: 1.014 MB / 1.043 GB, free: 10.83 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.8823, allocations: 7.984 kB / 1.043 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.8825, allocations: 31.92 kB / 1.043 GB, free: 10.79 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004626/0.8829, allocations: 151.5 kB / 1.043 GB, free: 10.63 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.798e-05/0.883, allocations: 11.94 kB / 1.043 GB, free: 10.62 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/0.8864, allocations: 3.942 MB / 1.047 GB, free: 6.359 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.8864, allocations: 0 / 1.047 GB, free: 6.359 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000956/0.8874, allocations: 0.6354 MB / 1.048 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.8876, allocations: 132.8 kB / 1.048 GB, free: 5.523 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.8876, allocations: 4 kB / 1.048 GB, free: 5.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.8879, allocations: 15.98 kB / 1.048 GB, free: 5.504 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.192e-05/0.8879, allocations: 31.94 kB / 1.048 GB, free: 5.473 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.888, allocations: 19.94 kB / 1.048 GB, free: 5.453 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001651/0.8881, allocations: 156.5 kB / 1.048 GB, free: 5.301 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8881, allocations: 0 / 1.048 GB, free: 5.301 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005548/0.8887, allocations: 95.94 kB / 1.048 GB, free: 5.207 MB / 0.795 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.0003055/0.889, allocations: 134 kB / 1.048 GB, free: 5.07 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001051/0.8901, allocations: 0.579 MB / 1.049 GB, free: 4.465 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.8901, allocations: 3.938 kB / 1.049 GB, free: 4.461 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005775/0.8907, allocations: 398.2 kB / 1.049 GB, free: 4.047 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.8913, allocations: 41.7 kB / 1.049 GB, free: 4.008 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.8926, allocations: 0.7914 MB / 1.05 GB, free: 3.168 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/0.8932, allocations: 0.7831 MB / 1.051 GB, free: 2.359 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.164e-05/0.8933, allocations: 27.44 kB / 1.051 GB, free: 2.336 MB / 0.795 GB Notification: Performance of SimCode: time 5.21e-07/0.8933, allocations: 0 / 1.051 GB, free: 2.336 MB / 0.795 GB Notification: Performance of Templates: time 0.01173/0.905, allocations: 7.579 MB / 1.058 GB, free: 10.75 MB / 0.8106 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/jenkins1/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