Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001343/0.001344, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.446/1.446, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.796/2.796, allocations: 437 MB / 0.7103 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 63.91 kB / 0.8692 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9435/0.9458, allocations: 151.6 MB / 1.017 GB, free: 2.578 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.00982/0.9557, allocations: 3.073 MB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005901/0.9616, allocations: 1.917 MB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.9619, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.9634, allocations: 290.6 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0008467/0.9643, allocations: 183.1 kB / 1.023 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.9655, allocations: 247.3 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00076/0.9663, allocations: 322.9 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005776/0.9669, allocations: 190.9 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002756/0.9672, allocations: 131.6 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000521/0.9677, allocations: 147.4 kB / 1.024 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.617e-05/0.9678, allocations: 24 kB / 1.024 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.9689, allocations: 407.2 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.9691, allocations: 79.8 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.9693, allocations: 123.4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.9703, allocations: 486.6 kB / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.9703, allocations: 0 / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9704, allocations: 0 / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.9704, allocations: 0 / 1.025 GB, free: 10.98 MB / 0.7794 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.001398/0.9718, allocations: 0.5614 MB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.9718, allocations: 12.03 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00163/0.9735, allocations: 112.5 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.974, allocations: 265.7 kB / 1.026 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.9741, allocations: 16.75 kB / 1.026 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.9741, allocations: 20.36 kB / 1.026 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008727/0.975, allocations: 357.5 kB / 1.026 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.9751, allocations: 3.938 kB / 1.026 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.9751, allocations: 12 kB / 1.026 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.101e-05/0.9752, allocations: 20.42 kB / 1.026 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008857/0.9761, allocations: 293.5 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003951/0.9801, allocations: 1.741 MB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009692/0.9811, allocations: 322.2 kB / 1.028 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002693/0.9813, allocations: 97.67 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001918/0.9816, allocations: 97.03 kB / 1.028 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.207e-05/0.9816, allocations: 38.44 kB / 1.028 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 3.236e-06/0.9816, allocations: 0 / 1.028 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.004536/0.9862, allocations: 0.9631 MB / 1.029 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.011e-05/0.9863, allocations: 88.98 kB / 1.03 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.9867, allocations: 212.7 kB / 1.03 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.9867, allocations: 33.73 kB / 1.03 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.987, allocations: 164.2 kB / 1.03 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.9871, allocations: 82.83 kB / 1.03 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.9873, allocations: 65.59 kB / 1.03 GB, free: 5.023 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002929/0.9876, allocations: 326.8 kB / 1.03 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.988, allocations: 131.9 kB / 1.03 GB, free: 4.566 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/0.9885, allocations: 210.5 kB / 1.031 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/0.9894, allocations: 362.5 kB / 1.031 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.9894, allocations: 7.938 kB / 1.031 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001689/0.9911, allocations: 0.5035 MB / 1.032 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.9911, allocations: 4 kB / 1.032 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.9912, allocations: 4 kB / 1.032 GB, free: 3.406 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009824/0.9922, allocations: 155.6 kB / 1.032 GB, free: 3.242 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.9927, allocations: 59.91 kB / 1.032 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005784/0.9985, allocations: 4.194 MB / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/0.9989, allocations: 20.14 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.468e-05/0.999, allocations: 16 kB / 1.036 GB, free: 14.62 MB / 0.795 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.0003535/0.9993, allocations: 168.9 kB / 1.036 GB, free: 14.45 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001471/0.9995, allocations: 19.72 kB / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/1.001, allocations: 490.5 kB / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.161e-05/1.002, allocations: 7.938 kB / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/1.002, allocations: 0 / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.002, allocations: 0 / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/1.005, allocations: 1.013 MB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/1.005, allocations: 0 / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/1.005, allocations: 39.92 kB / 1.038 GB, free: 12.78 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007692/1.006, allocations: 135.4 kB / 1.038 GB, free: 12.64 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/1.006, allocations: 12 kB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005324/1.011, allocations: 4.182 MB / 1.042 GB, free: 8.109 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.011, allocations: 4 kB / 1.042 GB, free: 8.105 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/1.013, allocations: 0.6282 MB / 1.042 GB, free: 7.426 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/1.013, allocations: 124.9 kB / 1.043 GB, free: 7.285 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.934e-05/1.013, allocations: 15.92 kB / 1.043 GB, free: 7.27 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004539/1.014, allocations: 19.98 kB / 1.043 GB, free: 7.25 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/1.014, allocations: 15.98 kB / 1.043 GB, free: 7.234 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/1.014, allocations: 15.98 kB / 1.043 GB, free: 7.219 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003491/1.014, allocations: 160.4 kB / 1.043 GB, free: 7.062 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.21e-07/1.014, allocations: 0 / 1.043 GB, free: 7.062 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0009991/1.015, allocations: 88 kB / 1.043 GB, free: 6.977 MB / 0.795 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.0003599/1.016, allocations: 127.2 kB / 1.043 GB, free: 6.844 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001759/1.017, allocations: 0.6064 MB / 1.044 GB, free: 6.211 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.017, allocations: 0 / 1.044 GB, free: 6.211 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0009233/1.018, allocations: 401.2 kB / 1.044 GB, free: 5.793 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009602/1.019, allocations: 37.91 kB / 1.044 GB, free: 5.758 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/1.021, allocations: 0.6396 MB / 1.045 GB, free: 5.066 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/1.022, allocations: 0.7792 MB / 1.045 GB, free: 4.262 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002731/1.022, allocations: 58.23 kB / 1.045 GB, free: 4.203 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.829e-05/1.022, allocations: 23.44 kB / 1.045 GB, free: 4.18 MB / 0.795 GB Notification: Performance of SimCode: time 5.01e-07/1.022, allocations: 3.938 kB / 1.045 GB, free: 4.176 MB / 0.795 GB Notification: Performance of Templates: time 0.012/1.034, allocations: 4.146 MB / 1.049 GB, free: 64 kB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches