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.006684/0.006684, allocations: 101 kB / 15.73 MB, free: 6.043 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.001246/0.001247, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.684/2.684, allocations: 461.9 MB / 0.7347 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 67.91 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3433, allocations: 157.4 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.00487/0.3482, allocations: 3.069 MB / 1.211 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003041/0.3513, allocations: 1.912 MB / 1.213 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.3514, allocations: 7.938 kB / 1.213 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000935/0.3524, allocations: 290.8 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000462/0.3529, allocations: 187.2 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007/0.3536, allocations: 239.3 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003703/0.354, allocations: 338.8 kB / 1.214 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003237/0.3543, allocations: 176.9 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.3545, allocations: 131.5 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.3548, allocations: 147.5 kB / 1.214 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.3548, allocations: 20 kB / 1.214 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006156/0.3554, allocations: 415.2 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.3556, allocations: 83.8 kB / 1.215 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3557, allocations: 123.4 kB / 1.215 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006192/0.3563, allocations: 482.7 kB / 1.215 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.3563, allocations: 4 kB / 1.215 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3563, allocations: 0 / 1.215 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.906e-06/0.3563, allocations: 0 / 1.215 GB, free: 2.023 MB / 0.9669 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.0009172/0.3573, allocations: 0.5574 MB / 1.216 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3573, allocations: 12.03 kB / 1.216 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008379/0.3582, allocations: 108.5 kB / 1.216 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.3585, allocations: 267.8 kB / 1.216 GB, free: 1 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3585, allocations: 16.75 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.3586, allocations: 28.36 kB / 1.216 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.3591, allocations: 345.5 kB / 1.216 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.3592, allocations: 0 / 1.216 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.3592, allocations: 19.92 kB / 1.216 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.967e-05/0.3593, allocations: 24.41 kB / 1.216 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004564/0.3597, allocations: 293.5 kB / 1.217 GB, free: 276 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.3619, allocations: 1.733 MB / 1.218 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.3624, allocations: 314.8 kB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.3626, allocations: 109.7 kB / 1.219 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.3627, allocations: 89.33 kB / 1.219 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.3627, allocations: 42.48 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.3627, allocations: 0 / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23): time 0.002519/0.3653, allocations: 0.9722 MB / 1.22 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.3653, allocations: 84.98 kB / 1.22 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.3656, allocations: 211.7 kB / 1.22 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.3656, allocations: 33.7 kB / 1.22 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3657, allocations: 179.9 kB / 1.22 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.931e-05/0.3658, allocations: 74.89 kB / 1.22 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.3659, allocations: 69.61 kB / 1.221 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.366, allocations: 330.8 kB / 1.221 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.3662, allocations: 127.9 kB / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.3665, allocations: 209.7 kB / 1.221 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.367, allocations: 379.3 kB / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.367, allocations: 0 / 1.222 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008822/0.3679, allocations: 0.5011 MB / 1.222 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3679, allocations: 8 kB / 1.222 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3679, allocations: 0 / 1.222 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/0.3684, allocations: 155.4 kB / 1.222 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.3687, allocations: 63.91 kB / 1.222 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003196/0.3719, allocations: 4.186 MB / 1.226 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.3722, allocations: 24.12 kB / 1.226 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.3722, allocations: 16 kB / 1.226 GB, free: 5.645 MB / 0.9825 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.0002092/0.3724, allocations: 169.6 kB / 1.226 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.256e-05/0.3725, allocations: 19.81 kB / 1.227 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008711/0.3734, allocations: 479.2 kB / 1.227 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3734, allocations: 0 / 1.227 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.3734, allocations: 4 kB / 1.227 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.3734, allocations: 7.922 kB / 1.227 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.3749, allocations: 0.9962 MB / 1.228 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3749, allocations: 4.031 kB / 1.228 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.3751, allocations: 35.92 kB / 1.228 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003953/0.3755, allocations: 139.3 kB / 1.228 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.3755, allocations: 11.98 kB / 1.228 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.3788, allocations: 4.151 MB / 1.232 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3789, allocations: 0 / 1.232 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008476/0.3797, allocations: 0.627 MB / 1.233 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.3799, allocations: 128.8 kB / 1.233 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.3799, allocations: 11.94 kB / 1.233 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3801, allocations: 15.97 kB / 1.233 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-05/0.3802, allocations: 19.98 kB / 1.233 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.3802, allocations: 16 kB / 1.233 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001708/0.3804, allocations: 161.5 kB / 1.233 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.034e-06/0.3804, allocations: 0 / 1.233 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005502/0.381, allocations: 91.94 kB / 1.233 GB, free: 14.05 MB / 0.9981 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.0002332/0.3812, allocations: 136.2 kB / 1.233 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0009521/0.3822, allocations: 0.5829 MB / 1.234 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3822, allocations: 4 kB / 1.234 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.3827, allocations: 406.2 kB / 1.234 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.3832, allocations: 31.98 kB / 1.234 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.3843, allocations: 0.6206 MB / 1.235 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.3847, allocations: 0.7792 MB / 1.236 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001589/0.3849, allocations: 58.25 kB / 1.236 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.57e-05/0.3849, allocations: 27.42 kB / 1.236 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of SimCode: time 2.61e-07/0.3849, allocations: 0 / 1.236 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of Templates: time 0.008156/0.3931, allocations: 4.228 MB / 1.24 GB, free: 7.078 MB / 0.9981 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/jenkins/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