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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00102/0.00102, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.009216/0.009216, allocations: 170.7 kB / 16.26 MB, free: 6.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.488/1.488, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.619/2.619, allocations: 390.9 MB / 0.6663 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005477/0.0005478, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9015/0.9021, allocations: 142.4 MB / 0.955 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003226/0.9054, allocations: 2.761 MB / 0.9577 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002719/0.9081, allocations: 1.885 MB / 0.9596 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.9083, allocations: 6.688 kB / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.9085, allocations: 37.2 kB / 0.9596 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004846/0.909, allocations: 185.9 kB / 0.9598 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005543/0.9095, allocations: 209.9 kB / 0.96 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.9099, allocations: 455.7 kB / 0.9604 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006297/0.9106, allocations: 326.4 kB / 0.9607 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001803/0.9108, allocations: 106.1 kB / 0.9608 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002999/0.9111, allocations: 145.4 kB / 0.961 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.02e-05/0.9111, allocations: 10.12 kB / 0.961 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007985/0.9119, allocations: 474.2 kB / 0.9614 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.377e-05/0.912, allocations: 75.2 kB / 0.9615 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.9121, allocations: 139.8 kB / 0.9616 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005974/0.9128, allocations: 498.9 kB / 0.9621 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.9128, allocations: 4 kB / 0.9621 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9128, allocations: 0 / 0.9621 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.9128, allocations: 1 kB / 0.9621 GB, free: 2.492 MB / 0.7169 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.0007874/0.9136, allocations: 0.5206 MB / 0.9626 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.9136, allocations: 9.25 kB / 0.9626 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008715/0.9145, allocations: 107.7 kB / 0.9627 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.9148, allocations: 271.2 kB / 0.963 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.9149, allocations: 16.81 kB / 0.963 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.9149, allocations: 16.94 kB / 0.963 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.9155, allocations: 355.1 kB / 0.9634 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.9155, allocations: 0 / 0.9634 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.9155, allocations: 10.53 kB / 0.9634 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.732e-05/0.9156, allocations: 25.95 kB / 0.9634 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000451/0.916, allocations: 293.9 kB / 0.9637 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.918, allocations: 1.74 MB / 0.9654 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005587/0.9186, allocations: 323.3 kB / 0.9657 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.9188, allocations: 108.2 kB / 0.9658 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.9189, allocations: 91.97 kB / 0.9659 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.9189, allocations: 35.59 kB / 0.9659 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.9189, allocations: 1.062 kB / 0.9659 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002848/0.9218, allocations: 0.9698 MB / 0.9669 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.9219, allocations: 83.86 kB / 0.967 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003155/0.9222, allocations: 220.3 kB / 0.9672 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.9223, allocations: 30.61 kB / 0.9672 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.9224, allocations: 168.4 kB / 0.9674 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.511e-05/0.9225, allocations: 81 kB / 0.9674 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.9226, allocations: 30.61 kB / 0.9675 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.9227, allocations: 332.2 kB / 0.9678 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.923, allocations: 131.6 kB / 0.9679 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.9233, allocations: 208.4 kB / 0.9681 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005382/0.9238, allocations: 368 kB / 0.9684 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.9238, allocations: 0.9062 kB / 0.9685 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009986/0.9248, allocations: 0.5191 MB / 0.969 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.9249, allocations: 6.156 kB / 0.969 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.9249, allocations: 2.125 kB / 0.969 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/0.9254, allocations: 155 kB / 0.9691 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.9257, allocations: 60.03 kB / 0.9692 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003454/0.9292, allocations: 3.965 MB / 0.973 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.9294, allocations: 25.44 kB / 0.9731 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.9295, allocations: 17.56 kB / 0.9731 GB, free: 8.855 MB / 0.7325 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.0002245/0.9297, allocations: 154.8 kB / 0.9732 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.9298, allocations: 30.58 kB / 0.9733 GB, free: 8.695 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.9309, allocations: 469.3 kB / 0.9737 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.9309, allocations: 3.5 kB / 0.9737 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.9309, allocations: 1.406 kB / 0.9737 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.9309, allocations: 3.984 kB / 0.9737 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.9328, allocations: 1.019 MB / 0.9747 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.9328, allocations: 2.562 kB / 0.9747 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.933, allocations: 28.7 kB / 0.9747 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004838/0.9335, allocations: 151.8 kB / 0.9749 GB, free: 7.508 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.9335, allocations: 20.64 kB / 0.9749 GB, free: 7.492 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003163/0.9367, allocations: 3.939 MB / 0.9788 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/0.9367, allocations: 6.219 kB / 0.9788 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.9377, allocations: 0.6213 MB / 0.9794 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.9379, allocations: 127.5 kB / 0.9795 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.9379, allocations: 11.95 kB / 0.9795 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.9382, allocations: 22.41 kB / 0.9795 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.9383, allocations: 22.48 kB / 0.9795 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.9383, allocations: 12.02 kB / 0.9796 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001813/0.9385, allocations: 158.3 kB / 0.9797 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9385, allocations: 0 / 0.9797 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005948/0.9391, allocations: 94.38 kB / 0.9798 GB, free: 2.766 MB / 0.7325 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.0002267/0.9393, allocations: 133.9 kB / 0.9799 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001056/0.9404, allocations: 0.5831 MB / 0.9805 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.9404, allocations: 1.406 kB / 0.9805 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005804/0.941, allocations: 393.3 kB / 0.9809 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.9416, allocations: 51.47 kB / 0.9809 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.943, allocations: 0.7551 MB / 0.9817 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.9434, allocations: 0.7793 MB / 0.9824 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.9436, allocations: 63.19 kB / 0.9825 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.9437, allocations: 22.89 kB / 0.9825 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of SimCode: time 9.12e-07/0.9437, allocations: 0 / 0.9825 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of Templates: time 0.00919/0.9529, allocations: 3.949 MB / 0.9864 GB, free: 13.79 MB / 0.7481 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 -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/jenkins/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