Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001509/0.001509, allocations: 111 kB / 15.99 MB, free: 5.891 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.001486/0.001486, allocations: 195.7 kB / 16.91 MB, free: 5.746 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.372/1.372, allocations: 222.9 MB / 240.6 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.696/2.696, allocations: 469.8 MB / 0.7427 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 69.34 kB / 0.9087 GB, free: 34.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2758, allocations: 159.2 MB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004742/0.2805, allocations: 3.124 MB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002882/0.2834, allocations: 1.897 MB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.2836, allocations: 4 kB / 1.069 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008556/0.2844, allocations: 267.9 kB / 1.069 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004187/0.2849, allocations: 175.3 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005674/0.2855, allocations: 224.5 kB / 1.07 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.2858, allocations: 326.9 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003923/0.2862, allocations: 205.2 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.2864, allocations: 135.5 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.2867, allocations: 155.5 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.347e-05/0.2868, allocations: 20 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005806/0.2873, allocations: 403.2 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.2875, allocations: 91.78 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.2876, allocations: 119.4 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.2881, allocations: 375.2 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2881, allocations: 0 / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.166e-06/0.2881, allocations: 4 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2881, allocations: 4 kB / 1.071 GB, free: 7.137 MB / 0.8262 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.0008662/0.289, allocations: 0.5497 MB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.289, allocations: 15.97 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007553/0.2898, allocations: 112.5 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.2901, allocations: 259.9 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.2901, allocations: 12.81 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/0.2902, allocations: 20.38 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005538/0.2907, allocations: 365.4 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2908, allocations: 0 / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.2908, allocations: 7.984 kB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.303e-05/0.2908, allocations: 28.42 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004673/0.2913, allocations: 289.5 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.2935, allocations: 1.741 MB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.294, allocations: 320.3 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.2942, allocations: 105.7 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.2943, allocations: 96.97 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.2944, allocations: 34.84 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.2944, allocations: 0 / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002453/0.2968, allocations: 0.9685 MB / 1.076 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.2969, allocations: 93.02 kB / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.2971, allocations: 211.7 kB / 1.076 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.2972, allocations: 29.7 kB / 1.077 GB, free: 1.504 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.2973, allocations: 168.1 kB / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.941e-05/0.2974, allocations: 82.84 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.2975, allocations: 57.69 kB / 1.077 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.2977, allocations: 326.8 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.2979, allocations: 135.9 kB / 1.077 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.2981, allocations: 218 kB / 1.077 GB, free: 496 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004797/0.2986, allocations: 366.5 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.2986, allocations: 0 / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009026/0.2995, allocations: 0.5139 MB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.2996, allocations: 5.562 kB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2996, allocations: 8 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004996/0.3001, allocations: 155.2 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.3004, allocations: 59.91 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003392/0.3038, allocations: 4.186 MB / 1.083 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.304, allocations: 19.98 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.304, allocations: 8 kB / 1.083 GB, free: 10.79 MB / 0.8419 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.3042, allocations: 173.7 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.3043, allocations: 19.72 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000895/0.3052, allocations: 488 kB / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3052, allocations: 4 kB / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.3052, allocations: 4 kB / 1.083 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.3052, allocations: 0 / 1.083 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.3068, allocations: 1.004 MB / 1.084 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3069, allocations: 3.938 kB / 1.084 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.307, allocations: 35.92 kB / 1.084 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003994/0.3074, allocations: 139.6 kB / 1.084 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.3074, allocations: 12 kB / 1.084 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/0.3107, allocations: 4.174 MB / 1.089 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.3107, allocations: 0 / 1.089 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008704/0.3116, allocations: 0.6349 MB / 1.089 GB, free: 3.594 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.3117, allocations: 120.9 kB / 1.089 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.3118, allocations: 15.92 kB / 1.089 GB, free: 3.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.312, allocations: 19.98 kB / 1.089 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/0.3121, allocations: 27.91 kB / 1.089 GB, free: 3.395 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.3121, allocations: 8 kB / 1.089 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001575/0.3123, allocations: 157.5 kB / 1.09 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3123, allocations: 0 / 1.09 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005027/0.3128, allocations: 87.98 kB / 1.09 GB, free: 3.148 MB / 0.8419 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.0002184/0.313, allocations: 136.2 kB / 1.09 GB, free: 3.004 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000977/0.314, allocations: 0.6074 MB / 1.09 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.314, allocations: 0 / 1.09 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005416/0.3145, allocations: 402.1 kB / 1.091 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.315, allocations: 43.91 kB / 1.091 GB, free: 1.91 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.3162, allocations: 0.7728 MB / 1.091 GB, free: 1.082 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.3166, allocations: 0.7753 MB / 1.092 GB, free: 288 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.159e-05/0.3167, allocations: 23.44 kB / 1.092 GB, free: 268 kB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3167, allocations: 0 / 1.092 GB, free: 268 kB / 0.8419 GB Notification: Performance of Templates: time 0.01022/0.3269, allocations: 7.619 MB / 1.1 GB, free: 8.641 MB / 0.8575 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches