Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001834/0.001834, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001726/0.001726, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.47/1.47, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 64.44 kB / 0.814 GB, free: 32.47 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2882, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004758/0.293, allocations: 3.082 MB / 0.9541 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002795/0.2959, allocations: 1.909 MB / 0.956 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.296, allocations: 7.938 kB / 0.956 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.297, allocations: 282.9 kB / 0.9563 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004289/0.2975, allocations: 195.1 kB / 0.9564 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.2981, allocations: 239.3 kB / 0.9567 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.2985, allocations: 326.9 kB / 0.957 GB, free: 2 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003363/0.2988, allocations: 172.9 kB / 0.9572 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.299, allocations: 139.5 kB / 0.9573 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002776/0.2993, allocations: 155.4 kB / 0.9574 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.2993, allocations: 20 kB / 0.9575 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005592/0.2999, allocations: 399.2 kB / 0.9578 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.58e-05/0.3, allocations: 87.72 kB / 0.9579 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.3001, allocations: 119.4 kB / 0.958 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005463/0.3007, allocations: 490.7 kB / 0.9585 GB, free: 456 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3007, allocations: 3.938 kB / 0.9585 GB, free: 452 kB / 0.7325 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3007, allocations: 0 / 0.9585 GB, free: 452 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.3007, allocations: 0 / 0.9585 GB, free: 452 kB / 0.7325 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.0008252/0.3015, allocations: 0.5663 MB / 0.9591 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3016, allocations: 8.031 kB / 0.9591 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007878/0.3024, allocations: 108.5 kB / 0.9592 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.3028, allocations: 263.9 kB / 0.9594 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.3028, allocations: 12.81 kB / 0.9594 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.3028, allocations: 24.38 kB / 0.9595 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005174/0.3033, allocations: 357.4 kB / 0.9598 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.3034, allocations: 0 / 0.9598 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.3034, allocations: 15.97 kB / 0.9598 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-05/0.3035, allocations: 24.42 kB / 0.9598 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00045/0.3039, allocations: 297.5 kB / 0.9601 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.3061, allocations: 1.726 MB / 0.9618 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.3066, allocations: 314.1 kB / 0.9621 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.3067, allocations: 113.7 kB / 0.9622 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.3069, allocations: 85.05 kB / 0.9623 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.3069, allocations: 38.83 kB / 0.9623 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 3.005e-06/0.3069, allocations: 0 / 0.9623 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002555/0.3095, allocations: 0.9757 MB / 0.9633 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.3095, allocations: 81.05 kB / 0.9634 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.3097, allocations: 211.7 kB / 0.9636 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.3098, allocations: 33.7 kB / 0.9636 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.3099, allocations: 168.2 kB / 0.9638 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.46e-05/0.3099, allocations: 78.88 kB / 0.9638 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.9e-05/0.3101, allocations: 65.61 kB / 0.9639 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3102, allocations: 330.8 kB / 0.9642 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.3104, allocations: 131.9 kB / 0.9643 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.3106, allocations: 213.3 kB / 0.9645 GB, free: 9.785 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.3111, allocations: 365.2 kB / 0.9649 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3111, allocations: 0 / 0.9649 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008523/0.3119, allocations: 0.5145 MB / 0.9654 GB, free: 8.863 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.312, allocations: 8 kB / 0.9654 GB, free: 8.855 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.312, allocations: 4 kB / 0.9654 GB, free: 8.852 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005608/0.3125, allocations: 147.4 kB / 0.9655 GB, free: 8.695 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.3128, allocations: 59.91 kB / 0.9656 GB, free: 8.637 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003117/0.3159, allocations: 4.194 MB / 0.9697 GB, free: 4.109 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.3162, allocations: 24.06 kB / 0.9697 GB, free: 4.086 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.3163, allocations: 15.94 kB / 0.9697 GB, free: 4.07 MB / 0.7481 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.0002201/0.3165, allocations: 165.7 kB / 0.9699 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.3166, allocations: 23.72 kB / 0.9699 GB, free: 3.875 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008764/0.3174, allocations: 474.5 kB / 0.9704 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3175, allocations: 0 / 0.9704 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3175, allocations: 7.938 kB / 0.9704 GB, free: 3.383 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3175, allocations: 3.984 kB / 0.9704 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.3191, allocations: 1.012 MB / 0.9714 GB, free: 2.273 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.3191, allocations: 4 kB / 0.9714 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.3192, allocations: 27.98 kB / 0.9714 GB, free: 2.242 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004195/0.3197, allocations: 143.3 kB / 0.9715 GB, free: 2.09 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.3197, allocations: 8.219 kB / 0.9715 GB, free: 2.082 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002912/0.3226, allocations: 4.17 MB / 0.9756 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.3226, allocations: 7.969 kB / 0.9756 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007945/0.3234, allocations: 0.6248 MB / 0.9762 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.3236, allocations: 124.8 kB / 0.9763 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.3236, allocations: 19.81 kB / 0.9764 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.3239, allocations: 19.98 kB / 0.9764 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/0.3239, allocations: 23.97 kB / 0.9764 GB, free: 12.69 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.324, allocations: 8 kB / 0.9764 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0001408/0.3241, allocations: 157.5 kB / 0.9766 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3241, allocations: 0 / 0.9766 GB, free: 12.53 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.000556/0.3247, allocations: 88 kB / 0.9766 GB, free: 12.45 MB / 0.7637 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.0002073/0.3249, allocations: 140.1 kB / 0.9768 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009744/0.3259, allocations: 0.5829 MB / 0.9774 GB, free: 11.69 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.3259, allocations: 0.625 kB / 0.9774 GB, free: 11.69 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005128/0.3264, allocations: 407.6 kB / 0.9777 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005178/0.3269, allocations: 45.83 kB / 0.9778 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.328, allocations: 0.6348 MB / 0.9784 GB, free: 10.54 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.3285, allocations: 0.7753 MB / 0.9792 GB, free: 9.742 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000162/0.3286, allocations: 62.23 kB / 0.9792 GB, free: 9.684 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.077e-05/0.3287, allocations: 23.44 kB / 0.9792 GB, free: 9.66 MB / 0.7637 GB Notification: Performance of SimCode: time 3.11e-07/0.3287, allocations: 0 / 0.9792 GB, free: 9.66 MB / 0.7637 GB Notification: Performance of Templates: time 0.008367/0.3371, allocations: 4.16 MB / 0.9833 GB, free: 5.531 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches