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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001542/0.001542, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001617/0.001617, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.648/1.648, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.561/2.561, allocations: 469.4 MB / 0.7427 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 58.94 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3439, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005502/0.3494, allocations: 3.069 MB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003322/0.3528, allocations: 1.912 MB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.353, allocations: 4 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009658/0.3541, allocations: 282.9 kB / 1.069 GB, free: 9.723 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005412/0.3547, allocations: 187.1 kB / 1.07 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.3554, allocations: 247.3 kB / 1.07 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00038/0.3558, allocations: 322.9 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.3562, allocations: 189.2 kB / 1.07 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.3564, allocations: 139.5 kB / 1.07 GB, free: 8.656 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.3567, allocations: 143.5 kB / 1.071 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.3568, allocations: 20 kB / 1.071 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006965/0.3575, allocations: 403.2 kB / 1.071 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.942e-05/0.3576, allocations: 83.8 kB / 1.071 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.3577, allocations: 123.4 kB / 1.071 GB, free: 7.898 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006378/0.3584, allocations: 486.7 kB / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3584, allocations: 0 / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3584, allocations: 0 / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.3584, allocations: 0 / 1.072 GB, free: 7.422 MB / 0.8419 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.0008953/0.3593, allocations: 0.5652 MB / 1.072 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.3594, allocations: 12.03 kB / 1.072 GB, free: 6.797 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008146/0.3602, allocations: 108.5 kB / 1.072 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.3605, allocations: 257.9 kB / 1.073 GB, free: 6.402 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.3606, allocations: 16.8 kB / 1.073 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.3606, allocations: 24.36 kB / 1.073 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.3612, allocations: 357.4 kB / 1.073 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.3612, allocations: 0 / 1.073 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.3612, allocations: 8 kB / 1.073 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.752e-05/0.3613, allocations: 24.42 kB / 1.073 GB, free: 5.961 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004562/0.3617, allocations: 293.5 kB / 1.073 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.3639, allocations: 1.733 MB / 1.075 GB, free: 3.77 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004773/0.3644, allocations: 330.1 kB / 1.075 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.3646, allocations: 101.7 kB / 1.075 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.3647, allocations: 97.02 kB / 1.075 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.3647, allocations: 34.84 kB / 1.075 GB, free: 3.148 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.3647, allocations: 0 / 1.075 GB, free: 3.148 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.002439/0.3672, allocations: 0.9673 MB / 1.076 GB, free: 2.145 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.3672, allocations: 85.05 kB / 1.076 GB, free: 2.043 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.3674, allocations: 215.7 kB / 1.077 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.3675, allocations: 33.69 kB / 1.077 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.778e-05/0.3676, allocations: 168.1 kB / 1.077 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.976e-05/0.3676, allocations: 86.83 kB / 1.077 GB, free: 1.531 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.77e-05/0.3677, allocations: 57.7 kB / 1.077 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3679, allocations: 330.8 kB / 1.077 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.3681, allocations: 131.9 kB / 1.077 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002439/0.3683, allocations: 218.2 kB / 1.078 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.3687, allocations: 370 kB / 1.078 GB, free: 376 kB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3688, allocations: 4 kB / 1.078 GB, free: 372 kB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.5554/0.9242, allocations: 0.5012 MB / 1.078 GB, free: 22.17 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.9242, allocations: 5.906 kB / 1.078 GB, free: 22.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.9243, allocations: 2.828 kB / 1.078 GB, free: 22.17 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005784/0.9248, allocations: 151.5 kB / 1.079 GB, free: 22.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.9251, allocations: 60.27 kB / 1.079 GB, free: 22.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.9276, allocations: 4.192 MB / 1.083 GB, free: 18.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.9278, allocations: 18.11 kB / 1.083 GB, free: 18.44 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.9278, allocations: 12.92 kB / 1.083 GB, free: 18.44 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.0001804/0.928, allocations: 160.2 kB / 1.083 GB, free: 18.32 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.9281, allocations: 23.97 kB / 1.083 GB, free: 18.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008819/0.929, allocations: 489.5 kB / 1.083 GB, free: 18.24 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.929, allocations: 11.31 kB / 1.083 GB, free: 18.24 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.929, allocations: 1.25 kB / 1.083 GB, free: 18.24 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.929, allocations: 1.359 kB / 1.083 GB, free: 18.24 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.9305, allocations: 1.007 MB / 1.084 GB, free: 17.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.9305, allocations: 2.25 kB / 1.084 GB, free: 17.65 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.9307, allocations: 34.73 kB / 1.084 GB, free: 17.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003932/0.9311, allocations: 141.7 kB / 1.085 GB, free: 17.59 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.9311, allocations: 12.86 kB / 1.085 GB, free: 17.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.9332, allocations: 4.176 MB / 1.089 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.9332, allocations: 7.484 kB / 1.089 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007351/0.9339, allocations: 0.6305 MB / 1.089 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.9341, allocations: 122.9 kB / 1.089 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.9341, allocations: 8.859 kB / 1.089 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.9343, allocations: 18.86 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.272e-05/0.9344, allocations: 30.38 kB / 1.09 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.9344, allocations: 7.688 kB / 1.09 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001421/0.9346, allocations: 161.6 kB / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9346, allocations: 0 / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005339/0.9351, allocations: 92.66 kB / 1.09 GB, free: 12.9 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.0001912/0.9353, allocations: 132 kB / 1.09 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009313/0.9363, allocations: 0.5977 MB / 1.09 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.9363, allocations: 0 / 1.09 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004639/0.9367, allocations: 400.1 kB / 1.091 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005173/0.9373, allocations: 43.41 kB / 1.091 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.9383, allocations: 0.6781 MB / 1.092 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.9386, allocations: 0.7826 MB / 1.092 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.753e-05/0.9387, allocations: 23.11 kB / 1.092 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of SimCode: time 3.7e-07/0.9387, allocations: 0.6562 kB / 1.092 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of Templates: time 0.01309/0.9518, allocations: 7.618 MB / 1.1 GB, free: 10.44 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 -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