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.001876/0.001876, allocations: 112.2 kB / 16.37 MB, free: 5.953 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.002127/0.002127, allocations: 190.2 kB / 17.3 MB, free: 5.578 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.61/2.61, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 60.34 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2997, allocations: 153 MB / 1.027 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004823/0.3046, allocations: 3.074 MB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002899/0.3075, allocations: 1.921 MB / 1.032 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.3077, allocations: 7.938 kB / 1.032 GB, free: 13 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009111/0.3086, allocations: 274.9 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005007/0.3091, allocations: 191.1 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.3098, allocations: 250.4 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004374/0.3102, allocations: 318.9 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003498/0.3106, allocations: 196.8 kB / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.3108, allocations: 127.5 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003094/0.3111, allocations: 147.5 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.3112, allocations: 24 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006606/0.3118, allocations: 403.2 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.312, allocations: 87.72 kB / 1.034 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.3121, allocations: 115.5 kB / 1.034 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006411/0.3127, allocations: 494.6 kB / 1.034 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3128, allocations: 0 / 1.034 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3128, allocations: 4 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.3128, allocations: 0 / 1.034 GB, free: 10.41 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.0009919/0.3138, allocations: 0.5536 MB / 1.035 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3138, allocations: 12.03 kB / 1.035 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008252/0.3147, allocations: 116.5 kB / 1.035 GB, free: 9.688 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.3151, allocations: 265 kB / 1.035 GB, free: 9.391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.3151, allocations: 16.8 kB / 1.035 GB, free: 9.371 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/0.3152, allocations: 20.31 kB / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005442/0.3157, allocations: 353.3 kB / 1.035 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.3158, allocations: 0 / 1.035 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.3158, allocations: 8 kB / 1.035 GB, free: 8.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.962e-05/0.3159, allocations: 32.36 kB / 1.035 GB, free: 8.949 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.3163, allocations: 289.5 kB / 1.036 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.3186, allocations: 1.722 MB / 1.037 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004924/0.3191, allocations: 334.1 kB / 1.038 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3193, allocations: 105.6 kB / 1.038 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.3194, allocations: 93.08 kB / 1.038 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.3195, allocations: 38.78 kB / 1.038 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.3195, allocations: 0 / 1.038 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002584/0.3221, allocations: 0.9593 MB / 1.039 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.3221, allocations: 85.05 kB / 1.039 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.3224, allocations: 223.7 kB / 1.039 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.3224, allocations: 25.7 kB / 1.039 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3225, allocations: 172 kB / 1.039 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.868e-05/0.3226, allocations: 86.83 kB / 1.039 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.3227, allocations: 57.7 kB / 1.04 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3229, allocations: 330.8 kB / 1.04 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.3231, allocations: 131.9 kB / 1.04 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.3234, allocations: 211.2 kB / 1.04 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004534/0.3238, allocations: 363 kB / 1.041 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3239, allocations: 4 kB / 1.041 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008628/0.3247, allocations: 0.5187 MB / 1.041 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.3248, allocations: 4 kB / 1.041 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.3248, allocations: 4 kB / 1.041 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005399/0.3253, allocations: 151.6 kB / 1.041 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.3256, allocations: 55.91 kB / 1.041 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003211/0.3288, allocations: 4.19 MB / 1.045 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.3291, allocations: 15.98 kB / 1.045 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.3291, allocations: 16 kB / 1.045 GB, free: 14.06 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.0001851/0.3293, allocations: 169.8 kB / 1.046 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/0.3294, allocations: 23.72 kB / 1.046 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008956/0.3303, allocations: 474.5 kB / 1.046 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-06/0.3303, allocations: 8 kB / 1.046 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3303, allocations: 0 / 1.046 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3303, allocations: 3.984 kB / 1.046 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.332, allocations: 1.008 MB / 1.047 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.332, allocations: 0 / 1.047 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.3321, allocations: 39.91 kB / 1.047 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004346/0.3326, allocations: 139.6 kB / 1.047 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.3326, allocations: 8.078 kB / 1.047 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003129/0.3357, allocations: 4.182 MB / 1.051 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.3358, allocations: 4 kB / 1.051 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008285/0.3366, allocations: 0.6243 MB / 1.052 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.3368, allocations: 120.9 kB / 1.052 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.3368, allocations: 11.94 kB / 1.052 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.3371, allocations: 23.97 kB / 1.052 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.739e-05/0.3371, allocations: 19.98 kB / 1.052 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.3372, allocations: 12 kB / 1.052 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001528/0.3373, allocations: 157.5 kB / 1.052 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.01e-07/0.3373, allocations: 0 / 1.052 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005374/0.3379, allocations: 92 kB / 1.052 GB, free: 6.434 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.0002652/0.3381, allocations: 135.1 kB / 1.052 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001025/0.3392, allocations: 0.6028 MB / 1.053 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3392, allocations: 0 / 1.053 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005625/0.3398, allocations: 393.2 kB / 1.053 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005284/0.3403, allocations: 52.72 kB / 1.053 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.3415, allocations: 0.6198 MB / 1.054 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.3419, allocations: 0.7831 MB / 1.055 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001716/0.3421, allocations: 58.23 kB / 1.055 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.3421, allocations: 23.44 kB / 1.055 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.3422, allocations: 0 / 1.055 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of Templates: time 0.008919/0.3511, allocations: 4.166 MB / 1.059 GB, free: 15.5 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 gbode -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