Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001591/0.001591, allocations: 113.5 kB / 16.37 MB, free: 6.012 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.001834/0.001835, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.415/1.415, 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 11.0.0-master/package.mo): time 2.59/2.59, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 59.52 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3823, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005237/0.3876, allocations: 3.075 MB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003226/0.3908, allocations: 1.921 MB / 1.032 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.3911, allocations: 7.938 kB / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.3921, allocations: 278.2 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005351/0.3926, allocations: 195.1 kB / 1.032 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007794/0.3934, allocations: 243.2 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004558/0.3939, allocations: 318.9 kB / 1.033 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.3942, allocations: 196.9 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.3944, allocations: 131.5 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.3948, allocations: 143.5 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.3948, allocations: 24 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007554/0.3956, allocations: 399.2 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.3957, allocations: 91.66 kB / 1.034 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.3959, allocations: 119.4 kB / 1.034 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007327/0.3966, allocations: 490.7 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3966, allocations: 4 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3966, allocations: 0 / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.3966, allocations: 0 / 1.034 GB, free: 10.45 MB / 0.8106 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.001013/0.3977, allocations: 0.5575 MB / 1.035 GB, free: 9.848 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3977, allocations: 15.97 kB / 1.035 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008347/0.3985, allocations: 104.5 kB / 1.035 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.3989, allocations: 265.4 kB / 1.035 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.399, allocations: 16.8 kB / 1.035 GB, free: 9.414 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.399, allocations: 16.38 kB / 1.035 GB, free: 9.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006023/0.3996, allocations: 361.4 kB / 1.035 GB, free: 9.027 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3997, allocations: 3.938 kB / 1.035 GB, free: 9.023 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.3997, allocations: 7.984 kB / 1.035 GB, free: 9.016 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.3997, allocations: 28.42 kB / 1.035 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.4002, allocations: 293.5 kB / 1.036 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.4027, allocations: 1.729 MB / 1.037 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.4033, allocations: 322.1 kB / 1.038 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.4034, allocations: 105.6 kB / 1.038 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.4036, allocations: 93.03 kB / 1.038 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.4036, allocations: 38.84 kB / 1.038 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.823e-06/0.4036, allocations: 0 / 1.038 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002507/0.4062, allocations: 0.9595 MB / 1.039 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.4063, allocations: 89.08 kB / 1.039 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.4065, allocations: 215.7 kB / 1.039 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.4066, allocations: 25.7 kB / 1.039 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.4067, allocations: 176 kB / 1.039 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.778e-05/0.4068, allocations: 82.84 kB / 1.039 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.4069, allocations: 57.7 kB / 1.04 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001923/0.4071, allocations: 330.8 kB / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.4073, allocations: 135.9 kB / 1.04 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.4075, allocations: 207.2 kB / 1.04 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005007/0.408, allocations: 367.2 kB / 1.04 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.408, allocations: 4 kB / 1.041 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009312/0.409, allocations: 0.5148 MB / 1.041 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.409, allocations: 4 kB / 1.041 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.409, allocations: 4.312 kB / 1.041 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005401/0.4096, allocations: 155.3 kB / 1.041 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.4098, allocations: 55.91 kB / 1.041 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003497/0.4134, allocations: 4.186 MB / 1.045 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.4136, allocations: 23.97 kB / 1.045 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.4137, allocations: 16 kB / 1.045 GB, free: 14.1 MB / 0.8262 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.000207/0.4139, allocations: 170.3 kB / 1.046 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/0.414, allocations: 23.72 kB / 1.046 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008796/0.4148, allocations: 474.5 kB / 1.046 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4149, allocations: 4 kB / 1.046 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.4149, allocations: 0 / 1.046 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4149, allocations: 4.078 kB / 1.046 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.4166, allocations: 1.011 MB / 1.047 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4166, allocations: 0 / 1.047 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.4167, allocations: 31.98 kB / 1.047 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.4172, allocations: 151.5 kB / 1.047 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.4172, allocations: 4 kB / 1.047 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003225/0.4204, allocations: 4.179 MB / 1.051 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4205, allocations: 4 kB / 1.051 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008818/0.4213, allocations: 0.622 MB / 1.052 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4215, allocations: 124.9 kB / 1.052 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.4216, allocations: 7.938 kB / 1.052 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.4218, allocations: 23.98 kB / 1.052 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.4219, allocations: 23.97 kB / 1.052 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.4219, allocations: 12 kB / 1.052 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001563/0.4221, allocations: 157.5 kB / 1.052 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4221, allocations: 0 / 1.052 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0007144/0.4228, allocations: 92 kB / 1.052 GB, free: 6.473 MB / 0.8262 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.000229/0.423, allocations: 139.1 kB / 1.052 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009982/0.424, allocations: 0.6027 MB / 1.053 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.4241, allocations: 0 / 1.053 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005352/0.4246, allocations: 396.5 kB / 1.053 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.4251, allocations: 48.8 kB / 1.053 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.4264, allocations: 0.6203 MB / 1.054 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.4269, allocations: 0.7831 MB / 1.055 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001697/0.4271, allocations: 58.23 kB / 1.055 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.4271, allocations: 19.44 kB / 1.055 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.4271, allocations: 4 kB / 1.055 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of Templates: time 0.008568/0.4357, allocations: 4.158 MB / 1.059 GB, free: 15.55 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches